Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update output config #14

Merged
merged 1 commit into from
Feb 17, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading