Skip to content

Commit

Permalink
udpate flow
Browse files Browse the repository at this point in the history
Signed-off-by: Jeffrey Tang <[email protected]>
  • Loading branch information
JeffreyDallas committed Apr 6, 2024
1 parent 6409057 commit 18e0e95
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions .github/workflows/flow-update-readme.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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}}

0 comments on commit 18e0e95

Please sign in to comment.