Skip to content

Commit 5d5a5b1

Browse files
committed
separate push step and clean lines
1 parent ffbc51a commit 5d5a5b1

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.github/workflows/dependabot-rbi-updater.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,12 @@ jobs:
3333
-
3434
name: Commit RBIs
3535
run: |
36-
git checkout ${{ github.head_ref }}
3736
git config --local user.name "Dependabot RBI Updater"
3837
git config --local user.email action@github.com
39-
git add sorbet/*
40-
git diff-index --quiet HEAD || git commit -m "[dependabot skip] Update RBIs"
41-
git push
38+
git commit -a -m "[dependabot skip] Update RBIs"
39+
-
40+
name: Push changes
41+
uses: ad-m/github-push-action@v0.8.0
42+
with:
43+
github_token: ${{ secrets.GITHUB_TOKEN }}
44+
branch: ${{ github.head_ref }}

0 commit comments

Comments
 (0)