Skip to content

Commit

Permalink
[ci] simplify version number detection
Browse files Browse the repository at this point in the history
Now that taiki-e/create-gh-release-action#12 has
landed, simplify getting the version number.
  • Loading branch information
sunshowers committed Feb 20, 2022
1 parent 07b7ba8 commit b42c06d
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ jobs:
with:
persist-credentials: false
- uses: taiki-e/create-gh-release-action@v1
id: create-gh-release
with:
prefix: cargo-nextest
# The changelog for cargo-nextest is hosted on the website
Expand All @@ -71,16 +72,8 @@ jobs:
branch: main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Get version number
id: get-version-number
# TODO: replace this step with https://github.com/taiki-e/create-gh-release-action/pull/12 once that lands
run: |
TAG_NAME=${{ github.ref_name }}
VERSION=${TAG_NAME#"cargo-nextest-"}
echo "The version number is $VERSION"
echo "::set-output name=version::$VERSION"
outputs:
version: ${{ steps.get-version-number.outputs.version }}
version: ${{ steps.create-gh-release.outputs.version }}

build-cargo-nextest-binaries:
name: Build cargo-nextest binaries for ${{ matrix.target }}
Expand Down

0 comments on commit b42c06d

Please sign in to comment.