Skip to content

Commit

Permalink
improve error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
Numynum committed Aug 30, 2024
1 parent 6902f9b commit 8966de6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ jobs:
- name: Checkout or create latest Annotations branch
if: ${{ steps.check.outputs.skip != 'true' }}
run: |
set -ex
git clone "https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY" ./.annotations_temp
cd ./.annotations_temp
git fetch --prune origin
Expand Down Expand Up @@ -75,6 +76,7 @@ jobs:
- name: Compare local and remote commit hashes
id: check
run: |
set -ex
if [[ "${{ inputs.FORCE_UPDATE }}" == "true" ]]; then
echo "skip=false" >> $GITHUB_OUTPUT
exit 0
Expand All @@ -101,6 +103,7 @@ jobs:
- name: Create annotations and push
if: ${{ steps.check.outputs.skip != 'true' }}
run: |
set -ex
branch=${{ inputs.BRANCH }}
cd ./.wow-ui-source
remote_commit_hash=$(git rev-parse HEAD)
Expand Down

0 comments on commit 8966de6

Please sign in to comment.