Skip to content

Commit

Permalink
Fix files output release
Browse files Browse the repository at this point in the history
  • Loading branch information
rbonghi committed Apr 8, 2022
1 parent 472ce18 commit de8fed1
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -136,10 +136,15 @@ jobs:
- name: Extract tag name
id: extract_tag
shell: bash
run: echo ::set-output name=tag::${GITHUB_REF/refs\/tags\//}
run: |
if ${{ startsWith(github.ref, 'refs/tags/') }} ; then
echo ::set-output name=tag::${GITHUB_REF/refs\/tags\//}
else
echo ::set-output name=tag::${GITHUB_REF/refs\/heads\//}
fi
- name: Discord notification
env:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
uses: Ilshidur/action-discord@master
with:
args: 'The project **{{ EVENT_PAYLOAD.repository.full_name }}** has been deployed v${{ steps.extract_tag.outputs.tag }}.'
args: '**{{ EVENT_PAYLOAD.repository.full_name }}:${{ steps.extract_tag.outputs.tag }}** has been deployed!'

0 comments on commit de8fed1

Please sign in to comment.