Skip to content

Commit fd32a80

Browse files
authored
Merge pull request #1046 from Nothing4You/fix-git-tag-release
Fix permissions in GitHub Actions workflow to allow pushing git tag after release
2 parents ff23e01 + 5e53c9f commit fd32a80

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

.github/workflows/ci-cd.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -661,11 +661,16 @@ jobs:
661661
name: >-
662662
Publish post-release Git tag
663663
for ${{ needs.pre-setup.outputs.git-tag }}
664+
664665
needs:
665666
- publish-pypi
666667
- pre-setup # transitive, for accessing settings
668+
667669
runs-on: ubuntu-latest
668670

671+
permissions:
672+
contents: write # Required for pushing git tag
673+
669674
steps:
670675
- name: Fetch the src snapshot
671676
uses: actions/checkout@v5
@@ -679,7 +684,7 @@ jobs:
679684

680685
- name: >-
681686
Tag the release in the local Git repo
682-
as v${{ needs.pre-setup.outputs.git-tag }}
687+
as ${{ needs.pre-setup.outputs.git-tag }}
683688
run: >-
684689
git tag
685690
-m "${GIT_TAG}"
@@ -689,6 +694,7 @@ jobs:
689694
env:
690695
GIT_TAG: ${{ needs.pre-setup.outputs.git-tag }}
691696
RELEASE_COMMITISH: ${{ github.event.inputs.release-commitish }}
697+
692698
- name: >-
693699
Push ${{ needs.pre-setup.outputs.git-tag }} tag corresponding
694700
to the just published release back to GitHub
@@ -701,10 +707,12 @@ jobs:
701707
name: >-
702708
Publish a tag and GitHub release for
703709
${{ needs.pre-setup.outputs.git-tag }}
710+
704711
needs:
705712
- post-release-repo-update
706713
- build
707714
- pre-setup # transitive, for accessing settings
715+
708716
runs-on: ubuntu-latest
709717

710718
permissions:

CHANGES.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
Changes
22
-------
33

4+
0.3.1 (2025-10-21)
5+
^^^^^^^^^^^^^^^^^^
6+
7+
* Fix permissions in GitHub Actions workflow to allow pushing git tag after release #1046
8+
49
0.3.0 (2025-10-21)
510
^^^^^^^^^^^^^^^^^^
611

0 commit comments

Comments
 (0)