File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2121 type : boolean
2222 pr_number :
2323 required : false
24- type : number
24+ type : string
2525 workflow_run_id :
2626 required : true
27- type : number
27+ type : string
2828 artifact_name :
2929 required : false
3030 type : string
Original file line number Diff line number Diff line change 1313 - ' **/*.md'
1414
1515jobs :
16- automation :
17- name : Automation 🎛️
18- if : ${{ github.repository == 'jellyfin/jellyfin-web' }}
19- uses : ./.github/workflows/__automation.yml
20- secrets :
21- JF_BOT_TOKEN : ${{ secrets.JF_BOT_TOKEN }}
22-
2316 main :
2417 name : ' Unstable release 🚀⚠️'
2518 uses : ./.github/workflows/__package.yml
Original file line number Diff line number Diff line change 2525 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
2626 HEAD_SHA : ${{ github.event.workflow_run.head_sha }}
2727 run : |
28- echo pr_number=$(gh api "repos/${GITHUB_REPOSITORY}/commits/${HEAD_SHA}/pulls" --jq 'map(select(.state == "open")) | .[0].number') >> "${GITHUB_OUTPUT}"
28+ API_RESPONSE=$(gh api "repos/${GITHUB_REPOSITORY}/commits/${HEAD_SHA}/pulls")
29+ PR_NUMBER=$(echo "${API_RESPONSE}" | jq '.[0].number')
30+
31+ echo "repository: ${GITHUB_REPOSITORY}"
32+ echo "sha: ${HEAD_SHA}"
33+ echo "response: ${API_RESPONSE}"
34+ echo "pr: ${PR_NUMBER}"
35+
36+ echo "pr_number=${PR_NUMBER}" >> "${GITHUB_OUTPUT}"
2937
3038 automation :
3139 name : Automation
You can’t perform that action at this time.
0 commit comments