Skip to content

Commit

Permalink
ci: Fixed conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
kvanzuijlen committed Feb 12, 2024
1 parent 30eccde commit eb47fba
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,16 @@ jobs:
id: version
run: echo "output=$(./version bump 0.1.0)" >> "$GITHUB_OUTPUT"
- name: Failed
if: ${{ steps.version.outputs.output != "0.1.1" }}
if: ${{ steps.version.outputs.output != '0.1.1' }}
run: |-
exit 1
- name: Success
if: ${{ steps.version.outputs.output == "0.1.1" }}
if: ${{ steps.version.outputs.output == '0.1.1' }}
run: |-
exit 0
docker-build:
name: docker-build
name: docker build
runs-on: ubuntu-latest
steps:
- name: Checkout code
Expand All @@ -50,10 +50,10 @@ jobs:
run: |-
echo "output=$(docker run ghcr.io/version-cli/version:latest bump 0.1.0)" >> "$GITHUB_OUTPUT"
- name: Failed
if: ${{ steps.version.outputs.output != "0.1.1" }}
if: ${{ steps.version.outputs.output != '0.1.1' }}
run: |-
exit 1
- name: Success
if: ${{ steps.version.outputs.output == "0.1.1" }}
if: ${{ steps.version.outputs.output == '0.1.1' }}
run: |-
exit 0

0 comments on commit eb47fba

Please sign in to comment.