Skip to content

Commit a98cf31

Browse files
committed
ci: fix release pipeline, add permissions to GH token
1 parent 37afdc2 commit a98cf31

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/prepare-release.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,13 @@ on:
66
version_part:
77
description: The part of the version to update (patch, minor or major)
88
required: true
9-
default: 'minor'
9+
default: "minor"
1010

1111
jobs:
1212
prepare-release:
1313
runs-on: ubuntu-latest
14+
permissions:
15+
contents: write # to create branch, tag and push the changes
1416
strategy:
1517
matrix:
1618
python-version: [3.9]
@@ -26,7 +28,7 @@ jobs:
2628
run: |
2729
echo "INPUT_VERSION_PART: ${{ github.event.inputs.version_part }}"
2830
python -c "if '${{ github.event.inputs.version_part }}' not in ['patch', 'minor', 'major']: raise ValueError(\"'${{ github.event.inputs.version_part }}' must be one of ['patch', 'minor', 'major'])\")"
29-
- name: Bump the version number # bump2version is a maintained fork of original bumpversion
31+
- name: Bump the version number # bump2version is a maintained fork of original bumpversion
3032
id: bump_version
3133
run: |
3234
pip install bump2version

0 commit comments

Comments
 (0)