Skip to content

Commit

Permalink
FIX: set GH_TOKEN for ComPWA/actions@v1 (#104)
Browse files Browse the repository at this point in the history
* BEHAVIOR: rename `clean-cache.yml` workflow to `clean-caches.yml`
* BEHAVIOR: rename job to "Remove caches"
  • Loading branch information
redeboer authored Jan 28, 2023
1 parent de1243e commit 96289b2
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Clean cache
name: Clean caches

on:
pull_request:
Expand All @@ -8,7 +8,9 @@ on:

jobs:
cleanup:
name: Remove PR caches
name: Remove caches
runs-on: ubuntu-22.04
steps:
- uses: ComPWA/actions/clean-caches@v1
with:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
".github/workflows/ci.yml": true,
"src/repoma/.github/ISSUE_TEMPLATE": true,
"src/repoma/.github/pull_request_template.md": true,
"src/repoma/.github/workflows/clean-cache.yml": true,
"src/repoma/.github/workflows/clean-caches.yml": true,
"src/repoma/.github/workflows/pr-linting.yml": true,
"src/repoma/.github/workflows/release-drafter.yml": true,
"src/repoma/.template/.cspell.json": true,
Expand Down
1 change: 0 additions & 1 deletion src/repoma/.github/workflows/clean-cache.yml

This file was deleted.

1 change: 1 addition & 0 deletions src/repoma/.github/workflows/clean-caches.yml
3 changes: 2 additions & 1 deletion src/repoma/check_dev_files/github_workflows.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,8 @@ def update() -> None:
executor(remove_workflow, "ci-style.yml")
executor(remove_workflow, "ci-tests.yml")
executor(remove_workflow, "linkcheck.yml")
executor(_copy_workflow_file, "clean-cache.yml")
executor(_copy_workflow_file, "clean-caches.yml")
executor(remove_workflow, "clean-cache.yml")
if executor.error_messages:
raise PrecommitError(executor.merge_messages())

Expand Down

0 comments on commit 96289b2

Please sign in to comment.