Skip to content

Commit d997ccd

Browse files
committed
add debugging
1 parent 13bd9bb commit d997ccd

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

.github/workflows/push-staging-pr-on-close.yml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ on:
77
workflow_dispatch:
88
inputs:
99
pr_number:
10-
description: 'PR number to test with'
10+
description: "PR number to test with"
1111
required: true
1212
type: string
1313
pr_merged:
14-
description: 'Simulate merged PR'
14+
description: "Simulate merged PR"
1515
required: true
1616
type: boolean
1717
default: true
@@ -37,6 +37,18 @@ jobs:
3737
echo "pr_number=${{ inputs.pr_number }}" >> $GITHUB_OUTPUT
3838
fi
3939
40+
- name: Debug PR info
41+
run: |
42+
echo "PR Number: ${{ steps.pr_number.outputs.pr_number }}"
43+
echo "Event name: ${{ github.event_name }}"
44+
if [ "${{ github.event_name }}" == "pull_request" ]; then
45+
echo "PR merged: ${{ github.event.pull_request.merged }}"
46+
fi
47+
48+
echo "Listing artifacts for PR ${{ steps.pr_number.outputs.pr_number }}:"
49+
gh api repos/${{ github.repository }}/actions/artifacts --paginate | \
50+
jq -r '.artifacts[] | select(.workflow_run.head_branch == "pr/${{ steps.pr_number.outputs.pr_number }}") | " - \(.name) (run: \(.workflow_run.id))"' || echo "No artifacts found or error listing artifacts"
51+
4052
- name: Download artifact
4153
uses: dawidd6/action-download-artifact@v11
4254
with:
@@ -55,7 +67,7 @@ jobs:
5567
ls -la connect-files/
5668
exit 1
5769
fi
58-
70+
5971
echo "Found plugin file: $plgfile"
6072
version=$(date +"%Y.%m.%d.%H%M")
6173
sed -i -E "s#(<!ENTITY version \").*(\">)#\1${version}\2#g" "${plgfile}" || exit 1

0 commit comments

Comments
 (0)