Skip to content

chore(ci): bring over nr-spar workflows #6

chore(ci): bring over nr-spar workflows

chore(ci): bring over nr-spar workflows #6

Workflow file for this run

name: PR
on:
pull_request:
concurrency:
# PR open and close use the same group, allowing only one at a time
group: ${{ github.event.number }}
cancel-in-progress: true
jobs:
builds:
name: Builds
runs-on: ubuntu-24.04
permissions:
packages: write
steps:
- uses: bcgov-nr/[email protected]
with:
package: sync
tag: ${{ github.event.number }}
tag_fallback: latest
triggers: ('sync/')
deploys:
name: Deploys (${{ github.event.number }})
needs: [builds]
secrets: inherit
uses: ./.github/workflows/.deploy.yml
results:
name: PR Results
if: always()
# Include all needs that could have failures!
needs: [builds, deploys]
runs-on: ubuntu-24.04
steps:
- run: |
# View results
echo "needs.*.result: ${{ toJson(needs.*.result) }}"
- if: contains(needs.*.result, 'failure')
run: |
# Job failure found
echo "At least one job has failed"
exit 1