Skip to content

Commit

Permalink
Rename upload to deploy, and fix git commit failure when no changes w…
Browse files Browse the repository at this point in the history
…ere made
  • Loading branch information
object-Object committed Jul 14, 2024
1 parent c0461f2 commit 3a6beb9
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/examples.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
name: ${{ matrix.mappings }}
path: .ctt/${{ matrix.mappings }}/

upload:
deploy:
needs: build
runs-on: ubuntu-latest
strategy:
Expand Down Expand Up @@ -85,5 +85,6 @@ jobs:
run: |
SHORT_SHA=`echo ${{ github.sha }} | cut -c1-10`
git add .
git commit -m "Deploy ${{ env.TARGET_BRANCH }} from ${SHORT_SHA}"
git push
if git commit -m "Deploy ${{ env.TARGET_BRANCH }} from ${SHORT_SHA}"; then
git push
fi

0 comments on commit 3a6beb9

Please sign in to comment.