From f3952465f30ac93cab7e805fc75c01948d986232 Mon Sep 17 00:00:00 2001 From: Derek Roberts Date: Wed, 2 Oct 2024 13:30:14 -0700 Subject: [PATCH] Dump context --- .github/workflows/pr-open.yml | 98 +++++++++++++++++++---------------- 1 file changed, 53 insertions(+), 45 deletions(-) diff --git a/.github/workflows/pr-open.yml b/.github/workflows/pr-open.yml index da7899f5f..9c851c072 100644 --- a/.github/workflows/pr-open.yml +++ b/.github/workflows/pr-open.yml @@ -9,54 +9,62 @@ concurrency: cancel-in-progress: true jobs: - builds: - name: Builds + dump: + name: Dump Context runs-on: ubuntu-24.04 - outputs: - triggered: ${{ steps.build.outputs.triggered }} - permissions: - packages: write - strategy: - matrix: - package: [backend, frontend, oracle-api, sync] steps: - - uses: bcgov-nr/action-builder-ghcr@v2.2.0 - id: build - with: - build_args: | - BUILD_NUMBER=${{ github.event.number }} - BUILDKIT_INLINE_CACHE=1 - package: ${{ matrix.package }} - tag: ${{ github.event.number }} - tag_fallback: latest - triggers: ('${{ matrix.package }}/') + - run: | + echo "GITHUB_CONTEXT: ${{ env.GITHUB_CONTEXT }}" + env: + GITHUB_CONTEXT: ${{ toJson(github) }} + # builds: + # name: Builds + # runs-on: ubuntu-24.04 + # outputs: + # triggered: ${{ steps.build.outputs.triggered }} + # permissions: + # packages: write + # strategy: + # matrix: + # package: [backend, frontend, oracle-api, sync] + # steps: + # - uses: bcgov-nr/action-builder-ghcr@v2.2.0 + # id: build + # with: + # build_args: | + # BUILD_NUMBER=${{ github.event.number }} + # BUILDKIT_INLINE_CACHE=1 + # package: ${{ matrix.package }} + # tag: ${{ github.event.number }} + # tag_fallback: latest + # triggers: ('${{ matrix.package }}/') - deploys: - name: Deploys (${{ github.event.number }}) - needs: [builds] - secrets: inherit - uses: ./.github/workflows/.deploy.yml + # deploys: + # name: Deploys (${{ github.event.number }}) + # needs: [builds] + # secrets: inherit + # uses: ./.github/workflows/.deploy.yml - tests: - name: Tests - if: needs.deploys.outputs.run_tests == 'true' - needs: [deploys] - secrets: inherit - uses: ./.github/workflows/.tests.yml + # tests: + # name: Tests + # if: needs.deploys.outputs.run_tests == 'true' + # needs: [deploys] + # secrets: inherit + # uses: ./.github/workflows/.tests.yml - results: - name: PR Results - if: always() - # Include all needs that could have failures! - needs: [builds, deploys, tests] - runs-on: ubuntu-24.04 - steps: - - run: | - # View results - echo "needs.*.result: ${{ toJson(needs.*.result) }}" + # results: + # name: PR Results + # if: always() + # # Include all needs that could have failures! + # needs: [builds, deploys, tests] + # 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 + # - if: contains(needs.*.result, 'failure') + # run: | + # # Job failure found + # echo "At least one job has failed" + # exit 1