Skip to content

fix: AERMOD tile selection and download packaging #228

fix: AERMOD tile selection and download packaging

fix: AERMOD tile selection and download packaging #228

Workflow file for this run

name: PR
on:
pull_request:
concurrency:
group: ${{ github.event.number }}
cancel-in-progress: true
permissions: {}
jobs:
# https://github.com/bcgov/action-builder-ghcr
builds:
name: Builds
permissions:
attestations: write
id-token: write
packages: write
runs-on: ubuntu-24.04
strategy:
matrix:
package: [backend, frontend]
timeout-minutes: 10
steps:
- uses: bcgov/action-builder-ghcr@cb2629351c87dd1c2130073e4ebb7233a9653a63 # v4.4.1
with:
package: ${{ matrix.package }}
tags: ${{ github.event.number }}
tag_fallback: latest
triggers: ('${{ matrix.package }}/', '.github/workflows/')
deploys:
name: Deploys (${{ github.event.number }})
needs: [builds]
uses: ./.github/workflows/reusable-deploy.yml
secrets:
db_password: ${{ secrets.db_password }}
oc_namespace: ${{ secrets.OC_NAMESPACE }}
oc_server: ${{ secrets.OC_SERVER }}
oc_token: ${{ secrets.OC_TOKEN }}
with:
target: ${{ github.event.number }}
triggers: ('backend/', 'frontend/', 'common/', '.github/workflows/')
#tests:
#name: Tests
#if: needs.deploys.outputs.triggered == 'true'
#needs: [deploys]
#uses: ./.github/workflows/reusable-tests.yml
# ==========================================================================
# WARNING: This job acts as the required merge gate for this workflow.
# If you add a new job to this workflow, you MUST add its ID to the 'needs'
# array below, otherwise its failure or cancellation will not block the PR!
# ==========================================================================
results:
name: PR Results
needs: [builds, deploys]
if: always()
runs-on: ubuntu-slim
timeout-minutes: 1
steps:
- name: Log Job Results Context
run: |
echo "=== Upstream Job Statuses ==="
echo '${{ toJson(needs) }}'
- name: Evaluate Overall Status
if: contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled')
run: |
echo "❌ Critical Check Failure: At least one required job has failed or was cancelled."
exit 1
- name: Success Message
run: echo "✅ All critical checks passed or were intentionally skipped!"