Skip to content

Commit fdd68d4

Browse files
authored
Merge pull request #7690 from dkanada/workflow-call
2 parents af8ff7d + b2464db commit fdd68d4

3 files changed

Lines changed: 11 additions & 10 deletions

File tree

.github/workflows/__deploy.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ on:
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

.github/workflows/push.yml

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,6 @@ on:
1313
- '**/*.md'
1414

1515
jobs:
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

.github/workflows/workflow_run.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,15 @@ jobs:
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

0 commit comments

Comments
 (0)