Skip to content

Commit

Permalink
fix: copy the .config directory (#152)
Browse files Browse the repository at this point in the history
# Description

This PR copies the `.config` directory to the destination. It contains
configuration files for our workflows.

# Verification

Manually verified on my local machine.
  • Loading branch information
kayman-mk authored Jan 5, 2025
1 parent ccd9621 commit 9bd314f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Clone this repository to your disk and run `setup-workflows.sh`. It copies the n
locations in your new repository.

```bash
./setup-workflows.sh <path-to-new-repository> <type>
./update-workflows.sh <path-to-new-repository> <type>
```

Search for `TODO` in the copied files and replace the placeholders with the correct values. The same script can be used to update
Expand All @@ -20,8 +20,8 @@ all files in case of major changes in the templates.

### Default setup

- Release management is done with [semantic-release](https://github.com/semantic-release/semantic-release). Releases are automatically tagged and published on GitHub. Special
releases for Maven Central and Terraform modules are supported.
- Release management is done with [semantic-release](https://github.com/semantic-release/semantic-release). Releases are automatically
tagged and published on GitHub. Special releases for Maven Central and Terraform modules are supported.
- stale issue and PR management
- welcome message for contributors
- linters for all files
Expand All @@ -38,7 +38,7 @@ The script to set up the workflows for new repositories is `setup-workflows.sh`.
repository. It starts with the default workflows and adds the specific ones based on the project type. In case of a filename clash,
the specific template overwrites the default one (exception: `.gitignore` These files are concatenated).

Use
Use

```bash
# USE_REPOSITORY
Expand Down
2 changes: 2 additions & 0 deletions update-workflows.sh
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,8 @@ shopt -s nullglob
mkdir -p "$destination_path/.github/workflows"
cp .github/workflows/default_* "$destination_path/.github/workflows"

cp -pr .config "$destination_path/"

# we do not have special files for simple GitHub projects, this is handled by the default setup
if [ "$repository_type" != "github-only" ]; then
cp ".github/workflows/${repository_type}"_* "$destination_path/.github/workflows/"
Expand Down

0 comments on commit 9bd314f

Please sign in to comment.