Skip to content

Commit

Permalink
Update build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Asklios authored Nov 29, 2023
1 parent 7449c6e commit 5f09d0e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,25 +31,26 @@ jobs:
echo ""::set-output name=current_release::$current_release""
- name: Check for new releases
id: release
run: |
latest_release=$(curl -s https://api.github.com/repos/keycloak/keycloak/releases/latest | jq -r '.tag_name')
echo "latest release: $latest_release"
if [ "$latest_release" != "${{ steps.current.outputs.current_release }}" ]; then
echo "New release found. Building and pushing Docker container..."
echo "New release found."
echo "::set-output name=new_release::true"
else
echo "No new releases found. Exiting."
exit 0
fi
build:
needs: check-release
if: ${{ needs.check-release.outputs.new_release == 'true' }}
if: ${{ needs.check-release.release.outputs.new_release == 'true' }}
runs-on: ubuntu-latest

steps:
- name: test
run: |
echo "${{ needs.check-release.outputs.current_release }}"
echo "${{ needs.check-release.current.outputs.current_release }}"

0 comments on commit 5f09d0e

Please sign in to comment.