Skip to content

Commit 6d87126

Browse files
Bot Updating Templated Files
1 parent 2ee4966 commit 6d87126

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/external_trigger.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
echo "**** External version: ${EXT_RELEASE} ****"
3333
echo "**** Retrieving last pushed version ****"
3434
image="linuxserver/code-server"
35-
tag="latest"
35+
tag="focal"
3636
token=$(curl -sX GET \
3737
"https://ghcr.io/token?scope=repository%3Alinuxserver%2Fcode-server%3Apull" \
3838
| jq -r '.token')
@@ -54,7 +54,7 @@ jobs:
5454
IMAGE_VERSION=$(echo ${IMAGE_RELEASE} | awk -F'-ls' '{print $1}')
5555
if [ -z "${IMAGE_VERSION}" ]; then
5656
echo "**** Can't retrieve last pushed version, exiting ****"
57-
FAILURE_REASON="Can't retrieve last pushed version for code-server tag latest"
57+
FAILURE_REASON="Can't retrieve last pushed version for code-server tag focal"
5858
curl -X POST -H "Content-Type: application/json" --data '{"avatar_url": "https://cdn.discordapp.com/avatars/354986384542662657/df91181b3f1cf0ef1592fbe18e0962d7.png","embeds": [{"color": 16711680,
5959
"description": "**Trigger Failed** \n**Reason:** '"${FAILURE_REASON}"' \n"}],
6060
"username": "Github Actions"}' ${{ secrets.DISCORD_WEBHOOK }}
@@ -85,7 +85,7 @@ jobs:
8585
--data-urlencode "description=GHA external trigger https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}" \
8686
--data-urlencode "Submit=Submit"
8787
echo "**** Notifying Discord ****"
88-
TRIGGER_REASON="A version change was detected for code-server tag latest. Old version:${IMAGE_VERSION} New version:${EXT_RELEASE}"
88+
TRIGGER_REASON="A version change was detected for code-server tag focal. Old version:${IMAGE_VERSION} New version:${EXT_RELEASE}"
8989
curl -X POST -H "Content-Type: application/json" --data '{"avatar_url": "https://cdn.discordapp.com/avatars/354986384542662657/df91181b3f1cf0ef1592fbe18e0962d7.png","embeds": [{"color": 9802903,
9090
"description": "**Build Triggered** \n**Reason:** '"${TRIGGER_REASON}"' \n**Build URL:** '"${buildurl}display/redirect"' \n"}],
9191
"username": "Github Actions"}' ${{ secrets.DISCORD_WEBHOOK }}

0 commit comments

Comments
 (0)