feat: add user #187
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
name: Update Content | |
on: | |
workflow_dispatch: | |
push: | |
paths: | |
- "script/**" | |
- "**/*.fprg" | |
- "**/*.c" | |
- "**/*.py" | |
- "**/*.ps1" | |
- "**/*.sql" | |
- "**/*.php" | |
- "**/*.html" | |
jobs: | |
update: | |
name: Update Content | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Setup PNPM | |
uses: pnpm/action-setup@v2 | |
with: | |
version: ${{ vars.PNPM_VERSION }} | |
run_install: | | |
args: [--ignore-scripts] | |
- name: Setup Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ vars.NODE_VERSION }} | |
cache: pnpm | |
- name: Run Script | |
run: pnpm script:run | |
- name: Automatically Commit Changed | |
uses: stefanzweifel/git-auto-commit-action@v4 | |
with: | |
push_options: "--force" | |
commit_options: "--no-verify" | |
commit_message: "chore(script): update content" | |
skip_checkout: true |