File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change 1- name : Update API Schemas Commit
1+ name : Update api-schemas pinned commit
22
33on :
44 schedule :
5- - cron : ' 0 0 * * *' # Run daily at midnight UTC
6- workflow_dispatch : # Allow manual triggering
5+ - cron : " 0 0 * * *"
6+ workflow_dispatch :
77
88jobs :
99 check-and-update :
@@ -38,19 +38,19 @@ jobs:
3838 git config --global user.email 'github-actions[bot]@users.noreply.github.com'
3939 BRANCH_NAME="update-api-schemas-$(date +%Y%m%d-%H%M%S)"
4040 git checkout -b $BRANCH_NAME
41-
41+
4242 # Update the commit reference
4343 NEW_COMMIT="${{ steps.get-commit.outputs.latest_commit }}"
4444 sed -i "s/const COMMIT = \".*\"/const COMMIT = \"$NEW_COMMIT\"/" src/util/api.ts
45-
45+
4646 # Commit and push changes
4747 git add src/util/api.ts
48- git commit -m "chore: update api-schemas commit to $NEW_COMMIT"
48+ git commit -m "[Docs Site] Update pinned api-schemas commit to $NEW_COMMIT"
4949 git push origin $BRANCH_NAME
50-
50+
5151 # Create pull request
5252 gh pr create \
53- --title "chore: update api-schemas commit reference " \
53+ --title "[Docs Site] Update pinned api-schemas commit" \
5454 --body "This PR updates the api-schemas commit reference to the latest version ($NEW_COMMIT)." \
5555 --base main \
5656 --head $BRANCH_NAME
You can’t perform that action at this time.
0 commit comments