Run when nf-test-gpu tests are skipped #5450
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: Run when nf-test-gpu tests are skipped | |
| on: | |
| push: | |
| branches: | |
| # https://docs.renovatebot.com/key-concepts/automerge/#branch-vs-pr-automerging | |
| - "renovate/**" # branches Renovate creates | |
| paths: | |
| - "**/meta.yml" | |
| pull_request: | |
| branches: [master] | |
| paths: | |
| - "**/meta.yml" | |
| merge_group: | |
| types: [checks_requested] | |
| branches: [master] | |
| jobs: | |
| check-files: | |
| runs-on: ubuntu-latest | |
| outputs: | |
| only-meta: ${{ steps.only-meta-check.outputs.only-meta }} | |
| steps: | |
| - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5 | |
| - uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3 | |
| id: changes | |
| with: | |
| filters: | | |
| meta: | |
| - '**/meta.yml' | |
| other: | |
| - '!**/meta.yml' | |
| - name: Check if only meta files changed | |
| id: only-meta-check | |
| run: | | |
| if [[ "${{ steps.changes.outputs.meta }}" == "true" && "${{ steps.changes.outputs.other }}" == "false" ]]; then | |
| echo "only-meta=true" >> $GITHUB_OUTPUT | |
| else | |
| echo "only-meta=false" >> $GITHUB_OUTPUT | |
| fi | |
| confirm-pass-gpu: | |
| runs-on: ubuntu-latest | |
| needs: check-files | |
| if: needs.check-files.outputs.only-meta == 'true' | |
| steps: | |
| - run: 'echo "nf-test-gpu tests were skipped"' |