Skip to content

Commit 486840f

Browse files
author
Stephan Dilly
committed
better tag version extraction
1 parent 32ca273 commit 486840f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/cd.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ jobs:
1010
runs-on: macos-latest
1111
steps:
1212
- uses: actions/checkout@v2
13+
- name: Get version
14+
id: get_version
15+
run: echo ::set-output name=version::${GITHUB_REF/refs\/tags\//}
1316
- name: Build
1417
run: cargo build
1518
- name: Run tests
@@ -50,7 +53,7 @@ jobs:
5053
HOMEBREW_GITHUB_API_TOKEN: ${{ secrets.BREW_TOKEN }}
5154
run: |
5255
brew tap extrawurst/tap
53-
brew bump-formula-pr -f --version=${{ github.ref }} --no-browse --no-audit \
56+
brew bump-formula-pr -f --version=${{ steps.get_version.outputs.version }} --no-browse --no-audit \
5457
--sha256=${{ steps.shasum.outputs.sha }} \
5558
--url="https://github.com/extrawurst/gitui/releases/download/${{ github.ref }}/gitui-mac.tar.gz" \
5659
extrawurst/tap/gitui

0 commit comments

Comments
 (0)