fix: register sandbox rollback defer before workload create to plug p… #213
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: Copyright Check | |
| on: | |
| push: | |
| # Exclude branches created by Dependabot to avoid triggering current workflow | |
| # for PRs initiated by Dependabot. | |
| branches-ignore: | |
| - 'dependabot/**' | |
| pull_request: | |
| branches: | |
| - main | |
| - "release-*" | |
| permissions: | |
| contents: read | |
| pull-requests: read | |
| jobs: | |
| build: | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | |
| - name: Filter paths | |
| id: changes | |
| uses: dorny/paths-filter@7b450fff21473bca461d4b92ce414b9d0420d706 # v4.0.2 | |
| with: | |
| filters: | | |
| copyright: | |
| - '**' | |
| - '!**/*.md' | |
| - '!**/*.svg' | |
| - '!**/*.png' | |
| - '!docs/**' | |
| - '!.github/**' | |
| - name: install sponge | |
| shell: bash | |
| if: steps.changes.outputs.copyright == 'true' | |
| run: sudo apt-get update && sudo apt-get install -y moreutils | |
| - name: generate copyright | |
| shell: bash | |
| if: steps.changes.outputs.copyright == 'true' | |
| run: | | |
| make gen-copyright | |
| - name: check diff | |
| shell: bash | |
| if: steps.changes.outputs.copyright == 'true' | |
| run: | | |
| git diff --exit-code |