From 3a6beb9dcf9fbcdcdd6cc6a859f62b4142ae6239 Mon Sep 17 00:00:00 2001 From: object-Object Date: Sun, 14 Jul 2024 12:48:41 -0400 Subject: [PATCH] Rename upload to deploy, and fix git commit failure when no changes were made --- .github/workflows/examples.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/examples.yml b/.github/workflows/examples.yml index 88836f87..6166bbf2 100644 --- a/.github/workflows/examples.yml +++ b/.github/workflows/examples.yml @@ -40,7 +40,7 @@ jobs: name: ${{ matrix.mappings }} path: .ctt/${{ matrix.mappings }}/ - upload: + deploy: needs: build runs-on: ubuntu-latest strategy: @@ -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