Skip to content

Commit 58ad8df

Browse files
committed
chore(ci): debug job outputs 5
1 parent e2c7802 commit 58ad8df

File tree

1 file changed

+20
-7
lines changed

1 file changed

+20
-7
lines changed

.github/workflows/reusable_export_pr_details.yml

Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,23 @@ jobs:
5656
# NodeJS standard library doesn't provide ZIP capabilities; use system `unzip` command instead
5757
- name: "Unzip PR artifact"
5858
run: unzip pr.zip
59-
- name: "Export PR details"
60-
uses: actions/github-script@v6
61-
with:
62-
github-token: ${{ secrets.token }}
63-
script: |
64-
const script = require('.github/scripts/export_pr_details.js')
65-
await script({github, context, core})
59+
run: echo ::set-output name=prNumber::$(cat ./number)
60+
- name: "Export PR details using shell"
61+
run: |
62+
FILE="pr.txt"
63+
pr=$(jc -c '.number' ${FILE})
64+
echo "PR is --- $pr"
65+
echo "PR_N=$pr" >> $GITHUB_ENV
66+
echo ::set-output name=prNumber::$(jc -c '.number' ${FILE})
67+
echo ::set-output name=prTitle::$(jq -c '.pull_request.title' .${FILE})
68+
echo ::set-output name=prBody::$(jq -c '.pull_request.body' .${FILE})
69+
echo ::set-output name=prAuthor::$(jq -c '.pull_request.user.login' .${FILE})
70+
echo ::set-output name=prAction::$(jq -c '.pull_request.action' .${FILE})
71+
echo ::set-output name=prIsMerged::$(jq -c '.pull_request.merged' .${FILE})
72+
# - name: "Export PR details"
73+
# uses: actions/github-script@v6
74+
# with:
75+
# github-token: ${{ secrets.token }}
76+
# script: |
77+
# const script = require('.github/scripts/export_pr_details.js')
78+
# await script({github, context, core})

0 commit comments

Comments
 (0)