Skip to content

Commit

Permalink
update output config
Browse files Browse the repository at this point in the history
  • Loading branch information
dyllamt committed Feb 17, 2024
1 parent d85c7ca commit 7b3e8e6
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/release-artifacts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
needs: get-version
runs-on: ubuntu-latest
outputs:
should_release: ${{ steps.check_image.outputs.image_exists }}
should_release: ${{ steps.check_image.outputs.should_release }}
steps:
- name: Check if Docker image exists with current version
id: check_image
Expand All @@ -33,10 +33,10 @@ jobs:
IMAGE_NAME="ghcr.io/dyllamt/coinbase-connector:$VERSION"
if curl -f -sL $IMAGE_NAME > /dev/null; then
echo "Docker image with version $VERSION exists."
echo "::set-output name=should_release::false"
echo "should_release=false" >> $GITHUB_OUTPUT
else
echo "Docker image with version $VERSION does not exist."
echo "::set-output name=should_release::true"
echo "should_release=true" >> $GITHUB_OUTPUT
fi
docker-push:
Expand Down Expand Up @@ -102,8 +102,7 @@ jobs:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"

helm-docs:
needs: new-version-check
if: needs.new-version-check.outputs.should_release == 'true'
needs: get-version
permissions:
contents: write
runs-on: ubuntu-latest
Expand Down

0 comments on commit 7b3e8e6

Please sign in to comment.