We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2d54558 commit 5d96182Copy full SHA for 5d96182
1 file changed
.github/workflows/weekly-api-diff.yml
@@ -34,7 +34,7 @@ jobs:
34
run: yarn build:api-published
35
36
- name: Generate diff
37
- run: yarn compare:apis --isCI > /tmp/diff-current.txt 2>&1 || true
+ run: yarn compare:apis --isCI > /tmp/diff-current.txt || true
38
39
# Check out snapshots repo so we can read the previous diff and commit the new one
40
- uses: actions/checkout@v4
@@ -63,8 +63,7 @@ jobs:
63
git config user.email "github-actions@github.com"
64
git config user.name "GitHub Actions"
65
git add diffs/$TODAY.txt
66
- git commit -m "weekly api diff $TODAY"
67
- git push
+ git diff --cached --quiet || (git commit -m "weekly api diff $TODAY" && git push)
68
fi
69
70
# Summarize with GitHub Models (free via GITHUB_TOKEN) and post to Slack
0 commit comments