Skip to content

Commit f94dc66

Browse files
committed
Try using if statement
1 parent 35cc98d commit f94dc66

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,11 @@ jobs:
1515
run: |
1616
git config --global user.name 'Kevel CI'
1717
git config --global user.email 'engineering@kevel.co'
18-
git commit -am "Bump version to ${GITHUB_REF#refs/*/}"
19-
git tag --force ${GITHUB_REF#refs/*/}
20-
git push
21-
git push --tags --force
18+
if git commit -am "Bump version to ${GITHUB_REF#refs/*/}"; then
19+
git tag --force ${GITHUB_REF#refs/*/}
20+
git push
21+
git push --tags --force
22+
fi
2223
- name: set up ruby
2324
uses: actions/setup-ruby@v1
2425
with:

0 commit comments

Comments
 (0)