Skip to content

Update Draft Features #4

Update Draft Features

Update Draft Features #4

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: rm features/draft/spec/*.yml features/draft/spec/*.dist
- run: npm run update-drafts
- run: npm run dist
- 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