Skip to content

Commit

Permalink
Capturing the context in a txt
Browse files Browse the repository at this point in the history
  • Loading branch information
gvegayon committed Jan 17, 2025
1 parent 82b2ac2 commit b34e82b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion post-artifact/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ runs:
shell: bash
run: |
echo "::group::GitHub context"
echo "${{ toJson(github) }}" || echo "Failed to dump context info"
echo "${{ toJson(github) }}" > context_${{ github.sha }}.txt || echo "Failed to dump context info"
cat context_${{ github.sha }}.txt || echo "Failed to dump context info"
echo "::endgroup::"
- name: Check this is a PR
Expand Down
3 changes: 2 additions & 1 deletion twostep-container-build/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,8 @@ runs:
shell: bash
run: |
echo "::group::GitHub context"
echo "${{ toJson(github) }}" || echo "Failed to dump context info"
echo "${{ toJson(github) }}" > context_${{ github.sha }}.txt || echo "Failed to dump context info"
cat context_${{ github.sha }}.txt || echo "Failed to dump context info"
echo "::endgroup::"
- name: Checking out the latest (may be merge if PR)
Expand Down

0 comments on commit b34e82b

Please sign in to comment.