Test multi-target deploys #66
This file contains 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
# Requires vars.NAME to be set as a variable. | |
name: CI | |
on: | |
pull_request: | |
types: | |
- opened | |
- reopened | |
- synchronize | |
- closed | |
branches: | |
- main | |
- dev | |
- backport/*.* | |
paths: | |
- config/** | |
- spack.yaml | |
issue_comment: | |
types: | |
- created | |
- edited | |
jobs: | |
pr-ci: | |
name: CI | |
if: >- | |
(github.event_name == 'pull_request' && github.event.action != 'closed') || (github.event_name == 'issue_comment' && startsWith(github.event.comment.body, '!redeploy')) | |
uses: access-nri/build-cd/.github/workflows/ci.yml@199-multi-target-deployments_rework-order | |
with: | |
model: ${{ vars.NAME }} | |
# root-sbd: if different from vars.NAME | |
pr: ${{ github.event_name == 'pull_request' && github.event.pull_request.number || github.event.issue.number }} | |
permissions: | |
pull-requests: write | |
contents: write | |
statuses: write | |
secrets: inherit | |
pr-comment: | |
name: Comment | |
if: github.event_name == 'issue_comment' | |
uses: access-nri/build-cd/.github/workflows/ci-comment.yml@v3 | |
with: | |
model: ${{ vars.NAME }} | |
# root-sbd: if different from vars.NAME | |
permissions: | |
pull-requests: write | |
contents: write | |
secrets: inherit | |
pr-closed: | |
name: Closed | |
if: github.event_name == 'pull_request' && github.event.action == 'closed' | |
uses: access-nri/build-cd/.github/workflows/ci-closed.yml@v3 | |
with: | |
model: ${{ vars.NAME }} | |
secrets: inherit |