Skip to content

Commit 5c2efeb

Browse files
committed
fix: exclude workflow files from api-sync commits
1 parent 40a773b commit 5c2efeb

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

.github/workflows/api-sync.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,9 @@ jobs:
7676
id: commit
7777
run: |
7878
git remote set-url origin "https://x-access-token:${{ secrets.SDK_SYNC_PAT }}@github.com/${{ github.repository }}.git"
79+
git checkout -- .github/workflows/ 2>/dev/null || true
7980
git add -A
81+
git reset HEAD .github/workflows/ 2>/dev/null || true
8082
if git diff --staged --quiet; then
8183
echo "No changes to commit"
8284
echo "has_changes=false" >> $GITHUB_OUTPUT

0 commit comments

Comments
 (0)