Skip to content

Commit 31a0d18

Browse files
committed
refactor: update
1 parent 5830f63 commit 31a0d18

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/create-pr.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ jobs:
1111
steps:
1212
- name: Checkout Repository
1313
uses: actions/checkout@v4
14+
with:
15+
token: ${{ secrets.GH_PAT }}
1416

1517
- name: Get version from package.json
1618
id: package_version
@@ -32,6 +34,7 @@ jobs:
3234
echo "VERSION_CHANGED=false" >> $GITHUB_ENV
3335
fi
3436
echo $VERSION_CHANGED
37+
echo $VERSION
3538
3639
- name: Check if a PR already exists
3740
id: check_pr
@@ -46,6 +49,7 @@ jobs:
4649
if: env.VERSION_CHANGED == 'true' && env.PR_EXISTS == '0'
4750
uses: peter-evans/create-pull-request@v7
4851
with:
52+
token: ${{ secrets.GH_PAT }}
4953
title: "🚀 Release v${{ env.VERSION }}"
5054
body: |
5155
## 🔄 Release v${{ env.VERSION }}
@@ -67,5 +71,3 @@ jobs:
6771
labels: "release"
6872
reviewers: "siumauricio"
6973
assignees: "siumauricio"
70-
env:
71-
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}

0 commit comments

Comments
 (0)