Skip to content

Commit eacc6dd

Browse files
committed
chore: add debug step to log workflow run variables in GitHub workflow
1 parent ab38515 commit eacc6dd

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

.github/workflows/github-registry.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,22 @@ permissions:
1111
contents: read
1212
jobs:
1313
pack:
14-
if: ${{ github.event.workflow_run.event == 'release' && github.event.workflow_run.conclusion == 'success' }}
14+
# if: ${{ github.event.workflow_run.event == 'release' && github.event.workflow_run.conclusion == 'success' }}
1515
name: "Pack"
1616
runs-on: ubuntu-latest
1717
steps:
18+
- name: "Variables"
19+
run: |
20+
echo "wr.event: ${{ github.event.workflow_run.event }}"
21+
echo "wr.conclusion: ${{ github.event.workflow_run.conclusion }}"
22+
echo "wr.head_branch: ${{ github.event.workflow_run.head_branch }}"
23+
echo "wr.id: ${{ github.event.workflow_run.id }}"
24+
echo "wr.name: ${{ github.event.workflow_run.name }}"
25+
echo "wr.run_number: ${{ github.event.workflow_run.run_number }}"
26+
echo "wr.run_attempt: ${{ github.event.workflow_run.run_attempt }}"
27+
echo "wr.url: ${{ github.event.workflow_run.url }}"
28+
echo "wr.head_sha: ${{ github.event.workflow_run.head_sha }}"
29+
echo "wr.head_ref: ${{ github.event.workflow_run.head_ref }}"
1830
# Checkout
1931
- name: Checkout
2032
uses: actions/checkout@v5

0 commit comments

Comments
 (0)