Skip to content

Commit ce1159d

Browse files
committed
ci: fix forked pr auto assigning
1 parent d0c343e commit ce1159d

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/auto_assign_pr.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,21 +56,22 @@ jobs:
5656
- run: unzip pr.zip
5757
- name: 'Find PR Title'
5858
id: find-pr
59-
uses: actions/github-script@v3
59+
uses: actions/github-script@v6
6060
with:
6161
github-token: ${{ secrets.GITHUB_TOKEN }}
6262
script: |
6363
var fs = require('fs');
6464
var titleString = String(fs.readFileSync('./NR'));
65-
echo "::set-output name=title::titleString"
65+
return titleString
66+
result-encoding: string
6667
- name: "Log PR Title"
6768
run: |
68-
echo \"${{ steps.find-pr.outputs.title }}\"
69+
echo "${{ steps.find-pr.outputs.result }}"
6970
7071
- name: "Check PR title"
7172
id: is-docs
7273
if: >
73-
startsWith(${{ steps.find-pr.outputs.title }}, 'docs:')
74+
startsWith(${{ steps.find-pr.outputs.result }}, 'docs:')
7475
run: |
7576
OUTPUT=true
7677
echo "::set-output name=isDocs::$OUTPUT"

0 commit comments

Comments
 (0)