Skip to content

Commit

Permalink
chore(test,ci): debug parent run id, artifact download
Browse files Browse the repository at this point in the history
Signed-off-by: Tibor Dancs <[email protected]>
  • Loading branch information
ScrewTSW committed Jan 22, 2025
1 parent 3aeb6c5 commit 763fa7c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
1 change: 1 addition & 0 deletions .github/workflows/recipe-catalog-change-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
11 changes: 7 additions & 4 deletions .github/workflows/recipe-catalog-change-trigger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit 763fa7c

Please sign in to comment.