Skip to content

Commit

Permalink
[workflows] Fixed bumped version name
Browse files Browse the repository at this point in the history
  • Loading branch information
raphtlw committed Feb 12, 2022
1 parent 136f743 commit 9b521f9
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,9 @@ jobs:
steps:
- name: Bump Homebrew cask
run: |
echo "$BUMP_VERSION"
BUMP_VERSION="${GITHUB_REF_NAME//v}"
brew tap raphtlw/tap
brew bump-cask-pr raphtlw/tap/m1necraft --version="$BUMP_VERSION"
env:
HOMEBREW_GITHUB_API_TOKEN: ${{ secrets.CUSTOM_GITHUB_TOKEN }}
BUMP_VERSION: ${{ github.ref_name }}
GITHUB_REF_NAME: ${{ github.ref_name }}
11 changes: 11 additions & 0 deletions scripts/retag.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/usr/bin/env bash

[ -z "$1" ] && {
echo "ERROR: tag name not set."
echo "=> Example: $(basename $0) resources"
exit 1
}

git tag -f $1
git push origin :refs/tags/$1
git push origin $1

0 comments on commit 9b521f9

Please sign in to comment.