Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -134,10 +134,12 @@ jobs:
cd "$TAP_DIR"
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
if git diff --quiet -- Casks/mnemo.rb; then
git add Casks/mnemo.rb
# Stage first, then check the staged diff: a brand-new (untracked) cask
# file is invisible to `git diff` but shows up in `git diff --cached`.
if git diff --cached --quiet; then
echo "Cask already up to date for ${VERSION}"
exit 0
fi
git add Casks/mnemo.rb
git commit -m "mnemo ${TAG}"
git push
Loading