diff --git a/.github/workflows/__deploy.yml b/.github/workflows/__deploy.yml index eebc799ddc..cff385fde4 100644 --- a/.github/workflows/__deploy.yml +++ b/.github/workflows/__deploy.yml @@ -21,10 +21,10 @@ on: type: boolean pr_number: required: false - type: number + type: string workflow_run_id: required: true - type: number + type: string artifact_name: required: false type: string diff --git a/.github/workflows/push.yml b/.github/workflows/push.yml index cc9fc08a0f..ae6819514f 100644 --- a/.github/workflows/push.yml +++ b/.github/workflows/push.yml @@ -13,13 +13,6 @@ on: - '**/*.md' jobs: - automation: - name: Automation 🎛️ - if: ${{ github.repository == 'jellyfin/jellyfin-web' }} - uses: ./.github/workflows/__automation.yml - secrets: - JF_BOT_TOKEN: ${{ secrets.JF_BOT_TOKEN }} - main: name: 'Unstable release 🚀⚠️' uses: ./.github/workflows/__package.yml diff --git a/.github/workflows/workflow_run.yml b/.github/workflows/workflow_run.yml index 8b703f9151..b45061d975 100644 --- a/.github/workflows/workflow_run.yml +++ b/.github/workflows/workflow_run.yml @@ -25,7 +25,15 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} HEAD_SHA: ${{ github.event.workflow_run.head_sha }} run: | - echo pr_number=$(gh api "repos/${GITHUB_REPOSITORY}/commits/${HEAD_SHA}/pulls" --jq 'map(select(.state == "open")) | .[0].number') >> "${GITHUB_OUTPUT}" + API_RESPONSE=$(gh api "repos/${GITHUB_REPOSITORY}/commits/${HEAD_SHA}/pulls") + PR_NUMBER=$(echo "${API_RESPONSE}" | jq '.[0].number') + + echo "repository: ${GITHUB_REPOSITORY}" + echo "sha: ${HEAD_SHA}" + echo "response: ${API_RESPONSE}" + echo "pr: ${PR_NUMBER}" + + echo "pr_number=${PR_NUMBER}" >> "${GITHUB_OUTPUT}" automation: name: Automation