We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 357431a commit bb19612Copy full SHA for bb19612
1 file changed
.github/workflows/release.yml
@@ -19,7 +19,10 @@ jobs:
19
env:
20
HOMEBREW_TAP_TOKEN: ${{ secrets.HOMEBREW_TAP_TOKEN }}
21
run: |
22
- if [ -n "$HOMEBREW_TAP_TOKEN" ]; then
+ if [ "$GITHUB_REPOSITORY" != "wxtsky/CodeIsland" ]; then
23
+ echo "available=false" >> "$GITHUB_OUTPUT"
24
+ echo "Skipping Homebrew tap update for fork repository $GITHUB_REPOSITORY."
25
+ elif [ -n "$HOMEBREW_TAP_TOKEN" ]; then
26
echo "available=true" >> "$GITHUB_OUTPUT"
27
else
28
echo "available=false" >> "$GITHUB_OUTPUT"
@@ -76,5 +79,9 @@ jobs:
76
79
git config user.name "github-actions[bot]"
77
80
git config user.email "github-actions[bot]@users.noreply.github.com"
78
81
git add Casks/codeisland.rb
82
+ if git diff --cached --quiet; then
83
+ echo "Homebrew cask is already up to date."
84
+ exit 0
85
+ fi
86
git commit -m "Update codeisland to ${VERSION}"
87
git push
0 commit comments