Skip to content

Commit

Permalink
fixed the missing checkout for scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
cjlapao committed Jan 23, 2025
1 parent 13bd580 commit db6f466
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflow_scripts/announce_discord.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
WEBHOOK_URL=""
VERSION=""
BETA="FALSE"
CANARY="FALSE"
while [[ $# -gt 0 ]]; do
case $1 in
--webhook-url)
Expand All @@ -18,6 +19,10 @@ while [[ $# -gt 0 ]]; do
BETA="TRUE"
shift
;;
--canary)
CANARY="TRUE"
shift
;;
*)
echo "Invalid argument: $1" >&2
exit 1
Expand Down Expand Up @@ -55,6 +60,9 @@ TITLE="📢 New Release v${VERSION}"
if [ "$BETA" = "TRUE" ]; then
TITLE="🧪 New Beta Release v${VERSION}"
fi
if [ "$CANARY" = "TRUE" ]; then
TITLE="🐤 New Canary Release v${VERSION}"
fi

# Create the JSON payload
JSON_PAYLOAD=$(
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/release_beta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,7 @@ jobs:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
VERSION: ${{ needs.beta-release.outputs.version }}
steps:
- uses: actions/checkout@v4
- name: Announce on discord
id: announce_discord
run: |
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/release_canary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,7 @@ jobs:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
VERSION: ${{ needs.canary-release.outputs.version }}
steps:
- uses: actions/checkout@v4
- name: Announce on discord
id: announce_discord
run: |
Expand Down

0 comments on commit db6f466

Please sign in to comment.