Update menu data #881
This file contains hidden or 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 menu data | |
| on: | |
| workflow_dispatch: | |
| schedule: | |
| - cron: "0 9 * * *" | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| jobs: | |
| update_menu_data: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Set up Ruby | |
| uses: ruby/setup-ruby@v1 | |
| with: | |
| ruby-version: 3.1 | |
| bundler-cache: true | |
| - name: Update menu data | |
| run: bundle exec ruby script/update_menu_data.rb | |
| - name: Generate pull request body | |
| run: bundle exec ruby script/diff_menus.rb > /tmp/update_menu_data_pr_body.md | |
| - uses: peter-evans/create-pull-request@v8 | |
| with: | |
| commit-message: Update menu data | |
| delete-branch: true | |
| title: Update menu data | |
| body-path: /tmp/update_menu_data_pr_body.md |