-
Notifications
You must be signed in to change notification settings - Fork 9
45 lines (42 loc) · 1.2 KB
/
auto-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
37
38
39
40
41
42
43
44
45
# This is a basic workflow to help you get started with Actions
name: Auto update BCDice
on:
push:
branches:
- bcdice-auto-update
- ci/*-auto-update
# schedule:
# - cron: '0 0/6 * * *'
jobs:
auto_update:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: bcdice-auto-update
submodules: true
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: npm
- uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7.0
bundler-cache: true
- run: |
git config --global user.name "github-actions"
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
git merge master || true
git submodule update --init
- run: |
./scripts/autopatch_rebase.sh master
./scripts/autopatch_apply.sh master
- run: |
npm ci
npm run build
npm test
- run: |
git add patch.diff BCDice Gemfile.lock
git commit -m ":heavy_plus_sign: Update BCDice to $(git -C BCDice rev-parse --short HEAD)"
git push --force origin bcdice-auto-update
continue-on-error: true