-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Jeffrey Tang <[email protected]>
- Loading branch information
1 parent
6409057
commit 18e0e95
Showing
1 changed file
with
10 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,6 +29,10 @@ defaults: | |
jobs: | ||
update: | ||
runs-on: [self-hosted, Linux, medium, ephemeral] | ||
permissions: | ||
# Give the default GITHUB_TOKEN write permission to commit and push the | ||
# added or changed files to the repository. | ||
contents: write | ||
steps: | ||
- name: Checkout Code for Push | ||
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 | ||
|
@@ -149,13 +153,10 @@ jobs: | |
echo "Total README lines changed: $TOTAL_LINES_CHANGED" | ||
echo "TOTAL_LINES_CHANGED=$TOTAL_LINES_CHANGED" >> "${GITHUB_OUTPUT}" | ||
- name: Commit files | ||
uses: swinton/[email protected] | ||
if: ${{ steps.check-readme-changes.outputs.TOTAL_LINES_CHANGED > 10 }} | ||
env: | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- uses: planetscale/[email protected] | ||
with: | ||
files: | | ||
README.md | ||
commit-message: Auto update README.md | ||
commit_message: "auto update README.md" | ||
repo: ${{ github.repository }} | ||
branch: ${{ github.head_ref || github.ref_name }} | ||
env: | ||
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} |