From 763fa7c29ec142da303f22a4fe842e88310d1a48 Mon Sep 17 00:00:00 2001 From: Tibor Dancs Date: Wed, 22 Jan 2025 11:07:10 +0100 Subject: [PATCH] chore(test,ci): debug parent run id, artifact download Signed-off-by: Tibor Dancs --- .github/workflows/recipe-catalog-change-template.yaml | 1 + .github/workflows/recipe-catalog-change-trigger.yaml | 11 +++++++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/recipe-catalog-change-template.yaml b/.github/workflows/recipe-catalog-change-template.yaml index 16b3d478d..49b45966e 100644 --- a/.github/workflows/recipe-catalog-change-template.yaml +++ b/.github/workflows/recipe-catalog-change-template.yaml @@ -81,6 +81,7 @@ jobs: DEFAULT_PDE2E_IMAGE_VERSION: 'v0.0.3-windows' DEFAULT_AZURE_VM_SIZE: 'Standard_D8as_v5' run: | + echo "Parent job run id: ${{ inputs.trigger-workflow-run-id }}" echo "FORK=${{ inputs.pd-fork || env.DEFAULT_FORK }}" >> $GITHUB_ENV echo "BRANCH=${{ inputs.pd-branch || env.DEFAULT_BRANCH }}" >> $GITHUB_ENV echo "NPM_TARGET=${{ inputs.npm-target || env.DEFAULT_NPM_TARGET }}" >> $GITHUB_ENV diff --git a/.github/workflows/recipe-catalog-change-trigger.yaml b/.github/workflows/recipe-catalog-change-trigger.yaml index b54a61940..becdcf5bd 100644 --- a/.github/workflows/recipe-catalog-change-trigger.yaml +++ b/.github/workflows/recipe-catalog-change-trigger.yaml @@ -14,18 +14,21 @@ jobs: - name: Save the GH context in an artifact env: GH_CONTEXT: ${{ toJSON(github) }} - run: echo $GH_CONTEXT > gh_context.json + run: | + echo "Saving GitHub action run context for run ID ${{ github.run_id }}" + echo $GH_CONTEXT > gh_context.json + echo "Triggered by PR ${{ github.event.pull_request.number }} - ${{ github.event.pull_request.user.login }}/${{ github.event.pull_request.head.repo.name }}@${{ github.event.pull_request.head.ref }}" - name: Upload the GH context artifact uses: actions/upload-artifact@v4 with: name: gh-context path: gh_context.json windows-e2e-recipe-change: - uses: containers/podman-desktop-extension-ai-lab/.github/workflows/recipe-catalog-change-template.yaml@main + uses: ScrewTSW/podman-desktop-extension-ai-lab/.github/workflows/recipe-catalog-change-template.yaml@2134-run-recipe-tests-on-catalog-change strategy: fail-fast: false with: - trigger-workflow-run-id: ${{ github.event.action.run_id }} - trigger-workflow-fork: ${{ github.event.pull_request.head.repo.organization }} + trigger-workflow-run-id: ${{ github.run_id }} + trigger-workflow-fork: ${{ github.event.pull_request.user.login }} trigger-workflow-repo_name: ${{ github.event.pull_request.head.repo.name }} trigger-workflow-branch: ${{ github.event.pull_request.head.ref }}