Skip to content

Commit

Permalink
Remove step/job to verify git tag and Cargo.toml version match
Browse files Browse the repository at this point in the history
  • Loading branch information
simu committed Jan 11, 2024
1 parent 47372bf commit efb27c1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 41 deletions.
26 changes: 1 addition & 25 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -190,35 +190,11 @@ jobs:
name: wheels
path: dist

check-version:
name: Check if tag matches Cargo.toml version
runs-on: ubuntu-latest
if: "startsWith(github.ref, 'refs/tags/v')"
needs: [linux, windows, macos, sdist]
steps:
- uses: actions/checkout@v4
- name: Extract Git version from ref
id: git_version
run: echo "version=$(echo ${GITHUB_REF#refs/tags/})" >> ${GITHUB_OUTPUT}
env:
GITHUB_REF: ${{ github.ref }}
- name: Read Cargo.toml
id: cargo_version
uses: SebRollen/[email protected]
with:
file: Cargo.toml
field: package.version
- name: Verify that tag matches Cargo.toml version
run: |
if [ "v${{ steps.cargo_version.outputs.value }}" != "${{ steps.git_version.outputs.version }}" ]; then
exit 1
fi
release:
name: Release
runs-on: ubuntu-latest
if: "startsWith(github.ref, 'refs/tags/v')"
needs: [check-version]
needs: [linux, windows, macos, sdist]
steps:
- uses: actions/download-artifact@v4
with:
Expand Down
16 changes: 0 additions & 16 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,22 +12,6 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: "0"
- name: Extract Git version from ref
id: git_version
run: echo "version=$(echo ${GITHUB_REF#refs/tags/})" >> ${GITHUB_OUTPUT}
env:
GITHUB_REF: ${{ github.ref }}
- name: Read Cargo.toml
id: cargo_version
uses: SebRollen/[email protected]
with:
file: Cargo.toml
field: package.version
- name: Verify that tag matches Cargo.toml version
run: |
if [ "v${{ steps.cargo_version.outputs.value }}" != "${{ steps.git_version.outputs.version }}" ]; then
exit 1
fi
- name: Build changelog from PRs with labels
id: build_changelog
uses: mikepenz/release-changelog-builder-action@v4
Expand Down

0 comments on commit efb27c1

Please sign in to comment.