Deactivate Test #238
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: Deactivate Test | |
| on: | |
| schedule: | |
| - cron: '0 20 * * *' | |
| jobs: | |
| deactivate-test: | |
| name: Deactivate Test | |
| permissions: | |
| id-token: write | |
| contents: read | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Nomad | |
| uses: lucasmelin/setup-nomad@v2.0.0 | |
| - name: Exchange GitHub JWT for Nomad token | |
| uses: RoboJackets/nomad-jwt-auth@main | |
| with: | |
| url: https://nomad.bcdc.robojackets.net | |
| jwtGithubAudience: https://nomad.bcdc.robojackets.net | |
| methodName: GitHubActions | |
| - name: Stop test | |
| env: | |
| NOMAD_ADDR: https://nomad.bcdc.robojackets.net | |
| continue-on-error: true | |
| run: | | |
| nomad stop loop-test |