Skip to content

Commit 5367ba5

Browse files
Fixing the protected branch issue (#158)
1 parent d454b81 commit 5367ba5

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ jobs:
4747
cp -R CHANGES.md ~/oai_definitions/CHANGES.md
4848
- name: Checkout cli-core repo
4949
uses: actions/checkout@v2
50+
with:
51+
token: ${{ secrets.REPO_ACCESS_TOKEN }}
5052
- name: Update OAI specs
5153
id: update-specs
5254
run: |
@@ -63,14 +65,16 @@ jobs:
6365
steps:
6466
- name: Checkout cli-core repo
6567
uses: actions/checkout@v2
68+
with:
69+
persist-credentials: false
6670
- run: |
6771
git pull
6872
npm install
6973
- name: semanticRelease
7074
id: semantic-release
7175
run: npx semantic-release -t \${version}
7276
env:
73-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
77+
GITHUB_TOKEN: ${{ secrets.REPO_ACCESS_TOKEN }}
7478
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
7579
update-release:
7680
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)