Skip to content

Commit

Permalink
Rename Compliance.yml to Copier.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
abelsiqueira committed Sep 22, 2023
1 parent fbf8fd5 commit 332198e
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
{% raw %}name: Template Compliance
{% raw %}name: Copier Update

on:
schedule:
- cron: 0 7 1/7 * *
workflow_dispatch:

jobs:
Compliance:
Copier:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
token: ${{ secrets.COMPLIANCE_PAT }}
token: ${{ secrets.COPIER_PAT }}
- uses: julia-actions/setup-julia@v1
with:
version: "1"
Expand All @@ -25,7 +25,7 @@ jobs:
run: |
pip install copier
copier update -A -o rej
echo -e "Automated changed by Compliance.yml workflow\n" > /tmp/body.md
echo -e "Automated changed by Copier.yml workflow\n" > /tmp/body.md
echo -e 'Rejected changes (if any):\n```diff\n' >> /tmp/body.md
find . -name "*.rej" | xargs cat >> /tmp/body.md
find . -name "*.rej" | xargs rm -f
Expand All @@ -39,7 +39,7 @@ jobs:
id: cpr
uses: peter-evans/create-pull-request@v5
with:
token: ${{ secrets.COMPLIANCE_PAT }}
token: ${{ secrets.COPIER_PAT }}
commit-message: ":robot: COPIERTemplate.jl update"
title: "[AUTO] COPIERTemplate.jl update"
body-path: /tmp/body.md
Expand Down
6 changes: 3 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,19 +25,19 @@ and this project adheres to [Semantic Versioning].

### Fixed

- Properly fix compliance when there are conflicts
- Properly fix copier update when there are conflicts

## [0.1.4] - 2023-09-22

### Fixed

- Fix compliance when there are conflicts
- Fix copier update when there are conflicts

## [0.1.3] - 2023-09-21

### Added

- Run pre-commit in the compliance workflow to commit the formatters change as well
- Run pre-commit in the Copier workflow to commit the formatters change as well

### Changed

Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,13 +74,13 @@ I have done that in the past, but now I want even less manual intervention.
Follow the instruction in the terminal.
1. Create a Personal Access Token to be used by the Compliance workflow.
1. Create a Personal Access Token to be used by the Copier workflow.
1. Go to <https://github.com/settings/tokens>.
2. Create a token with "Content", "Pull-request", and "Workflows" permissions.
3. Copy the Token.
4. Go to your YOUR_PACKAGE_URL/settings/secrets/actions.
5. Create a "New repository secret" named `COMPLIANCE_PAT`.
5. Create a "New repository secret" named `COPIER_PAT`.
1. Before releasing, enable Zenodo integration at <https://zenodo.org/account/settings/github/>.
Expand Down Expand Up @@ -135,7 +135,7 @@ Also slightly related, is the `.editorconfig` file, which tells your editor, if
The select a few workflows, with a strong possibility of expanding in the future:
- CompatHelper.yml: Should be well known by now. It checks that your Project.toml compat entries are up-to-date.
- Compliance.yml: This will periodically check the template for updates. If there are updates, this action creates a pull request updating your repo.
- Copier.yml: This will periodically check the template for updates. If there are updates, this action creates a pull request updating your repo.
- Docs.yml: Build the docs. Only runs when relevant files change.
- Lint.yml: Run the linter and formatter through the command `pre-commit run -a`.
- TagBot.yml: Create GitHub releases automatically after your new release is merged on the Registry.
Expand Down

0 comments on commit 332198e

Please sign in to comment.