Skip to content

Commit

Permalink
ci(release): use github.ref_name for tag
Browse files Browse the repository at this point in the history
  • Loading branch information
mkniewallner committed Jan 12, 2025
1 parent 2f73e87 commit 326cea3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
7 changes: 1 addition & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,12 @@ jobs:
with:
persist-credentials: false

- name: Export tag
if: ${{ github.event_name == 'release' }}
id: vars
run: echo tag=${GITHUB_REF#refs/*/} >> $GITHUB_OUTPUT

- name: Update project version
if: ${{ github.event_name == 'release' }}
run: |
sed -i "s/^version = \".*\"/version = \"$RELEASE_VERSION\"/" pyproject.toml
env:
RELEASE_VERSION: ${{ steps.vars.outputs.tag }}
RELEASE_VERSION: ${{ github.ref_name }}

- name: Upload updated pyproject.toml
uses: actions/upload-artifact@v4
Expand Down
2 changes: 1 addition & 1 deletion zizmor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ rules:
artipacked:
ignore:
# Required for publishing documentation to `gh-pages` branch.
- release.yml:225
- release.yml:220

0 comments on commit 326cea3

Please sign in to comment.