File tree Expand file tree Collapse file tree 1 file changed +15
-3
lines changed
Expand file tree Collapse file tree 1 file changed +15
-3
lines changed Original file line number Diff line number Diff line change 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
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 :
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
You can’t perform that action at this time.
0 commit comments