Update github-actions #1078
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Check generated content | |
| 'on': | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| check: | |
| name: Check generated content | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out code | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| - name: Check template notice comments | |
| run: | | |
| #!/bin/bash | |
| set -euo pipefail | |
| hack/template_notice.py fix | |
| if [[ -n "$(git status -s)" ]]; then | |
| git --no-pager diff --color | |
| printf "::warning::%s\n" \ | |
| "Template notice comments are missing or not in the expected format." \ | |
| "Run './hack/template_notice.py fix' to autofix them." | |
| exit 1 | |
| fi | |
| - name: Check that files in root are up to date with templates | |
| run: | | |
| #!/bin/bash | |
| set -euo pipefail | |
| hack/selfupdate.sh | |
| if [[ -n "$(git status -s)" ]]; then | |
| git status -s | |
| printf "::warning::%s\n" \ | |
| "Files in ./ are not up to date with ./{{cookiecutter.repo_root}}/" \ | |
| "Run './hack/selfupdate.sh' to update them." | |
| exit 1 | |
| fi |