Skip to content

Commit

Permalink
use set -e so that the step exits on first failure
Browse files Browse the repository at this point in the history
currently we execute echo in any case which succeeds
  • Loading branch information
robstoll committed Oct 28, 2024
1 parent 5bedc22 commit 2400a3d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/gt-update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,9 @@ jobs:
- name: gt update
id: gt_update
run: |
gt update -r "${{ matrix.remote }}" && gt update -r "${{ matrix.remote }}"
set -e
gt update -r "${{ matrix.remote }}"
gt update -r "${{ matrix.remote }}"
echo "remote_version=$(git --git-dir='.gt/remotes/${{ matrix.remote}}/repo/.git' tag | sort --version-sort | tail -n 1)" >> $GITHUB_OUTPUT
- id: has_changes
name: git status
Expand Down

0 comments on commit 2400a3d

Please sign in to comment.