Skip to content

Commit cfae5dc

Browse files
author
Oleg
committed
Try using PAT. Remove checkout step
1 parent 7fafdf4 commit cfae5dc

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -142,14 +142,9 @@ jobs:
142142
env:
143143
TAG: v${{ needs.meta.outputs.latest-version }}
144144
COMMIT: ${{ github.event.before }}
145-
GH_TOKEN: ${{ github.token }}
145+
GH_TOKEN: ${{ secrets.PAT_GITHUB }}
146146

147147
steps:
148-
- name: Checkout current head
149-
uses: actions/checkout@v4
150-
with:
151-
ref: ${{ env.COMMIT }}
152-
153148
- name: Create a tag to mark previous latest version
154149
env:
155150
COMMIT: ${{ env.COMMIT }}
@@ -161,6 +156,7 @@ jobs:
161156
/repos/${{ github.repository }}/git/refs
162157
-f "ref=refs/tags/$TAG"
163158
-f "sha=$COMMIT"
159+
164160
- name: Create release assotiated with the tag
165161
run: >
166162
gh api

0 commit comments

Comments
 (0)