Skip to content

Commit

Permalink
Fix escaping of braces in pre-commit hash step in linting workflow (#20)
Browse files Browse the repository at this point in the history
* Fix escaping of braces in pre-commit hash step

* Don't run tests when changing irrelevant workflow files
  • Loading branch information
matt-graham authored Oct 21, 2024
1 parent 0e96fe2 commit f0524d1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/linting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
uses: actions/cache@v4
with:
path: ~/.cache/pre-commit
key: pre-commit-${{ '{{' }} hashFiles('.pre-commit-config.yaml') {{ '}}' }}
key: pre-commit-${{ hashFiles('.pre-commit-config.yaml') }}

- name: Set up Python
uses: actions/setup-python@v5
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ on:
- "LICENSE"
- ".github/release.yml"
- ".github/dependabot.yml"
- ".github/workflows/docs.yml"
- ".github/workflows/linting.yml"
- ".github/workflows/pypi-publish.yml"
schedule:
- cron: "0 0 * * 1"

Expand Down

0 comments on commit f0524d1

Please sign in to comment.