Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: copy the .config directory #152

Merged
merged 3 commits into from
Jan 5, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading