diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6ac6bdaa..ae91eeea 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 diff --git a/zizmor.yml b/zizmor.yml index fadc0548..1d5668bb 100644 --- a/zizmor.yml +++ b/zizmor.yml @@ -2,4 +2,4 @@ rules: artipacked: ignore: # Required for publishing documentation to `gh-pages` branch. - - release.yml:225 + - release.yml:220