Skip to content

Commit

Permalink
Adding version and context information to post-artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
gvegayon committed Jan 15, 2025
1 parent 7deee72 commit b494576
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion post-artifact/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Here are the contents of a job that (i) uploads an artifact using `actions/uploa

# Post the artifact pulling the id from the `readme` step.
- name: Post the artifact
uses: CDCgov/cfa-actions/post-artifact@main
uses: CDCgov/cfa-actions/post-artifact@1.2.0
if: ${{ github.event_name == 'pull_request' }}
with:
artifact-name: readme
Expand Down
2 changes: 2 additions & 0 deletions post-artifact/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ runs:
- name: Dumping github context information
shell: bash
run: |
echo "::group::GitHub context"
echo "${{ toJson(github) }}" || echo "Failed to dump context info"
echo "::endgroup::"
- name: Check this is a PR
if: ${{ github.event_name != 'pull_request' }}
Expand Down

0 comments on commit b494576

Please sign in to comment.