-
Notifications
You must be signed in to change notification settings - Fork 3
36 lines (33 loc) · 973 Bytes
/
update.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: update
on:
workflow_dispatch:
schedule:
- cron: '12 6 * * MON'
permissions:
pull-requests: write
jobs:
update:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- uses: actions/checkout@v4
- run: git checkout -b data-updates
- uses: ruby/setup-ruby@v1
with:
ruby-version: 3.1
bundler-cache: true
- run: bundle exec rake
env:
STACKS_TOKEN: ${{ secrets.STACKS_TOKEN }}
- uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: 'Update Stanford data dump'
commit_author: 'GitHub Actions <41898282+github-actions[bot]@users.noreply.github.com>'
branch: data-updates
push_options: '--force'
- name: pull-request
run: |
gh_pr_up() { gh pr create $* || gh pr edit $*; }
gh_pr_up --title "Update Stanford data dump" --head data-updates