Skip to content

Commit ba0adec

Browse files
committed
build: skip ci notify if no commit made
1 parent e1a69a7 commit ba0adec

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/update.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,16 @@ jobs:
3030
node getPreferred ./aws-sdk-js/apis
3131
node aws2openapi ./aws-sdk-js/apis ./openapi-directory/APIs/amazonaws.com -y
3232
- name: 🚀 Deploy
33+
id: deploy
3334
run: |
3435
cd openapi-directory/APIs
3536
git config user.name "Mike Ralphson"
3637
git config user.email "MikeRalphson@users.noreply.github.com"
3738
git add amazonaws.com
38-
git diff-index --quiet HEAD || git commit -am "Update AWS APIs to $SDKTAG"
39+
git diff-index --quiet HEAD || git commit -am "Update AWS APIs to $SDKTAG" && echo "::set-output name=ok::1"
3940
git push https://${{ secrets.GH_PAT }}@github.com/apis-guru/openapi-directory.git
4041
- name: Trigger oad CI
42+
if: ${{ steps.deploy.outputs.ok == '1' }}
4143
uses: peter-evans/repository-dispatch@v1
4244
with:
4345
token: ${{ secrets.GH_PAT }}

0 commit comments

Comments
 (0)