diff options
author | Stephan Dilly <dilly.stephan@gmail.com> | 2020-04-14 11:57:14 +0200 |
---|---|---|
committer | Stephan Dilly <dilly.stephan@gmail.com> | 2020-04-14 11:57:14 +0200 |
commit | 486840f1d6dc6ed99ef62c4a8a6c9eb69f632ac4 (patch) | |
tree | 175240b601a6b7724732efd543d12110b1f8c4cd /.github | |
parent | 32ca2736bb97b580e80307ef2234110096bc1527 (diff) |
better tag version extraction
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/cd.yml | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 0620feff..f9a2b2ad 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -10,6 +10,9 @@ jobs: runs-on: macos-latest steps: - uses: actions/checkout@v2 + - name: Get version + id: get_version + run: echo ::set-output name=version::${GITHUB_REF/refs\/tags\//} - name: Build run: cargo build - name: Run tests @@ -50,7 +53,7 @@ jobs: HOMEBREW_GITHUB_API_TOKEN: ${{ secrets.BREW_TOKEN }} run: | brew tap extrawurst/tap - brew bump-formula-pr -f --version=${{ github.ref }} --no-browse --no-audit \ + brew bump-formula-pr -f --version=${{ steps.get_version.outputs.version }} --no-browse --no-audit \ --sha256=${{ steps.shasum.outputs.sha }} \ --url="https://github.com/extrawurst/gitui/releases/download/${{ github.ref }}/gitui-mac.tar.gz" \ extrawurst/tap/gitui
\ No newline at end of file |