Skip to content

Commit 0ca2986

Browse files
authored
fix: add permissions to auto versioner (#5)
1 parent 21b43ca commit 0ca2986

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/versions.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ jobs:
99
update-major-tag:
1010
name: Update major tag
1111
runs-on: ubuntu-latest
12+
permissions:
13+
contents: write
1214
steps:
1315
- name: Checkout code
1416
uses: actions/checkout@v5
@@ -31,6 +33,8 @@ jobs:
3133
MAJOR=$(expr "$NEW_TAG" : '\(v[0-9][0-9]*\)\.[0-9][0-9]*\.[0-9][0-9]*$')
3234
[ -z "$MAJOR" ] && exit 20
3335
36+
echo "Creating tag $MAJOR pointing to $NEW_TAG ..."
37+
3438
git fetch --tags
3539
git tag -f "$MAJOR" "$NEW_TAG"
3640
git push origin "$MAJOR" --force

0 commit comments

Comments
 (0)