diff --git a/.github/workflows/update_draft_features_weekly.yml b/.github/workflows/update_draft_features_weekly.yml new file mode 100644 index 00000000000..29b7183df52 --- /dev/null +++ b/.github/workflows/update_draft_features_weekly.yml @@ -0,0 +1,33 @@ +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