ci: restrict push trigger for check-rust to main branch only #53
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 GitHub workflow | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - ".github/workflows/*.yml" | |
| pull_request: | |
| paths: | |
| - ".github/workflows/*.yml" | |
| jobs: | |
| check: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Install mise and setup | |
| uses: jdx/mise-action@v4 | |
| with: | |
| install: true | |
| install_args: "actionlint shellcheck" | |
| cache: true | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Check | |
| run: mise gh-check |