Update Draft Features #10
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 Draft Features | |
on: | |
# Runs at midnight on Mondays 05:30 UTC, or manually triggered | |
schedule: | |
- cron: '30 5 * * 1' | |
workflow_dispatch: | |
jobs: | |
update-drafts: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version-file: .node-version | |
cache: npm | |
- run: npm ci | |
- run: npm run update-drafts | |
- name: Commit changes | |
run: | | |
git config --local user.email "action@github.com" | |
git config --local user.name "GitHub Action" | |
git add -A | |
git commit -m "Update draft features weekly" || echo "No changes to commit" | |
- name: Create Pull Request | |
uses: peter-evans/create-pull-request@v6 | |
with: | |
commit-message: Update draft features weekly | |
title: "[GitHub Actions] Update draft features weekly" | |
body: "This is an auto-generated PR with draft features by spec updates." | |
branch: update-draft-features-${{ github.run_number }} | |
delete-branch: true |