mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2026-10-26 16:45:18 +00:00
add debug logging to PR step in workflow
This commit is contained in:
1 parent
322d52b750
commit
b2464dbea7
3 files changed
+11
-10
No files matched your search
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in new issue
Block a user