Skip to content

Commit

Permalink
Fix release bot docker tag (#3199)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kailai-Wang authored Dec 12, 2024
1 parent 7a947d9 commit 34a8f41
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/release-bot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,6 @@ jobs:
# this means the release contains a new docker image (thus a new client)
if: contains(github.event.release.body, 'litentry/litentry-parachain:v')
steps:
- name: Set env
run: |
DOCKER_TAG=$(echo ${{ env.RELEASE_TAG }} | cut -d'-' -f1 | sed 's/p/v/')
echo "DOCKER_TAG=$DOCKER_TAG" >> $GITHUB_ENV
- name: Post discord message
env:
DISCORD_WEBHOOK: ${{ secrets.RELEASE_BOT_DISCORD_WEBHOOK }}
Expand All @@ -23,7 +18,7 @@ jobs:
args: |
Hi @everyone,
🚀 A new client release has been built: https://github.com/litentry/litentry-parachain/releases/tag/${{ github.event.release.tag_name }}
✨ Please update the client using the docker image litentry/litentry-parachain:$DOCKER_TAG
✨ Please update the client using the docker image litentry/litentry-parachain:${{ github.event.release.tag_name }}
- name: Update litentry image version
uses: "OnFinality-io/action-onf-release@v1"
Expand All @@ -38,5 +33,5 @@ jobs:
# Add a new image version to network spec
onf-sub-command: image
onf-action: add
image-version: $DOCKER_TAG
image-version: ${{ github.event.release.tag_name }}

0 comments on commit 34a8f41

Please sign in to comment.