Skip to content

Commit

Permalink
fix workflow release tag variable
Browse files Browse the repository at this point in the history
  • Loading branch information
mo-c4t committed Aug 19, 2024
1 parent 383e3db commit 2086097
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
with:
fetch-depth: 0
submodules: true
ref: ${{ github.event.release.tag }}
ref: ${{ github.event.release.tag_name }}

- name: Log in to Docker Hub
uses: docker/login-action@v3
Expand All @@ -30,4 +30,4 @@ jobs:
push: true
tags: |
c4tplatform/camino-messenger-bot:latest
c4tplatform/camino-messenger-bot:${{ github.event.release.tag }}
c4tplatform/camino-messenger-bot:${{ github.event.release.tag_name }}
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
with:
fetch-depth: 0
submodules: true
ref: ${{ github.event.release.tag }}
ref: ${{ github.event.release.tag_name }}

- uses: actions/setup-go@v5
with:
Expand All @@ -32,8 +32,8 @@ jobs:
- name: upload release assets
run: |
cp ./build/bot ./camino-messenger-bot
tar -zcvf camino-messenger-bot-linux-amd64-${{ github.event.release.tag }}.tar.gz ./camino-messenger-bot
gh release upload ${{ github.event.release.tag }} camino-messenger-bot-linux-amd64-${{ github.event.release.tag }}.tar.gz
tar -zcvf camino-messenger-bot-linux-amd64-${{ github.event.release.tag_name }}.tar.gz ./camino-messenger-bot
gh release upload ${{ github.event.release.tag_name }} camino-messenger-bot-linux-amd64-${{ github.event.release.tag_name }}.tar.gz
env:
GITHUB_TOKEN: ${{ github.TOKEN }}
shell: bash
Expand Down

0 comments on commit 2086097

Please sign in to comment.