add debug logging to PR step in workflow

This commit is contained in:
dkanada committed 2026-03-17 14:42:03 +09:00
1 parent 322d52b750
commit b2464dbea7
3 files changed
+11 -10

No files matched your search

+2 -2
View File
@@ -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
-7
View File
@@ -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
+9 -1
View File
@@ -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