New examples #21
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: Pull Request Check | |
on: | |
pull_request: | |
branches: [ main ] | |
permissions: write-all | |
jobs: | |
generation: | |
name: Content Generator | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
with: | |
ref: ${{github.head_ref}} | |
- name: Setup Node.js | |
uses: actions/setup-node@v3 | |
- name: Running Clean Up Code | |
run: | | |
node ./.github/generate.contents.js | |
git config user.name "github-actions[bot]" | |
git config user.email "41898282+github-actions[bot]@users.noreply.github.com" | |
git add . | |
git commit -m "generated" | |
git push | |
check: | |
name: Check | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
run: | | |
echo hello | |
exit 0 |