Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
change conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
EgorPopelyaev committed Aug 23, 2023
1 parent 22a266b commit 2e3b067
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release-50_publish-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ jobs:
- name: Fetch all artifacts
run: |
if [[ ${{ github.event.release }} == "published" ]]; then
if [[ ${{ github.event_name }} == "release" && ${{ github.event.action }} == "published" ]]; then
mkdir -p release-artifacts && cd release-artifacts
for f in $BINARY $BINARY.asc $BINARY.sha256; do
Expand Down Expand Up @@ -157,7 +157,7 @@ jobs:
tag=$(git name-rev --tags --name-only $(git rev-parse HEAD)) && \
[ "${tag}" != "undefined" ] && echo "tag=${tag}" >> $GITHUB_OUTPUT || \
echo "No tag, doing without"
elif [[ "${type}" == "final" || "${{ github.event.release }}" == "published"]] ; then
elif [[ "${type}" == "final" || ${{ github.event_name }} == "release" && ${{ github.event.action }} == "published" ]] ; then
VERSION=$(docker run --pull never --rm $DOCKER_OWNER/$BINARY --version | awk '{ print $2 }' )
release=$( echo $VERSION | cut -f1 -d- )
echo "tag=latest" >> $GITHUB_OUTPUT
Expand Down

0 comments on commit 2e3b067

Please sign in to comment.