Skip to content

Commit 380bc0b

Browse files
authored
ci: run CI actions after update sdk doc change (#558)
Signed-off-by: Michael Beemer <[email protected]>
1 parent 309e624 commit 380bc0b

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

.github/workflows/update-sdk-docs.yaml

+10-4
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ jobs:
1515
with:
1616
submodules: recursive
1717
fetch-depth: 0
18+
# Avoid using the GitHub token in the git config
19+
persist-credentials: false
1820

1921
- name: Set up Node.js
2022
uses: actions/setup-node@v4
@@ -57,10 +59,14 @@ jobs:
5759
run: |
5860
yarn run update:sdk-docs && \
5961
git add --all && \
60-
git commit -m 'chore: update sdk readmes' -s && \
61-
git push origin $BRANCH_NAME --force-with-lease
62-
env:
63-
GITHUB_TOKEN: ${{ secrets.PULL_REQUEST_AUTOMATION }}
62+
git commit -m 'chore: update sdk readmes' -s
63+
64+
- name: Push changes
65+
uses: ad-m/[email protected]
66+
with:
67+
github_token: ${{ secrets.PULL_REQUEST_AUTOMATION }}
68+
branch: ${{ vars.BRANCH_NAME }}
69+
force_with_lease: true
6470

6571
- name: Create pr if doesn't exist
6672
shell: bash

0 commit comments

Comments
 (0)