-
-
Notifications
You must be signed in to change notification settings - Fork 93
45 lines (43 loc) · 1.28 KB
/
main.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
name: 表示用データセット作成
on:
pull_request:
paths:
- 50_Data/**/*
branches: [ master ]
jobs:
label:
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@v2
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
generate:
needs: label
name: Data Update
runs-on: macOS-latest
steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.head_ref }}
- uses: r-lib/actions/setup-r@v1
- name: Install Package Dependencies
run: |-
Rscript -e "install.packages(c('data.table', 'sparkline', 'purrr', 'jsonlite', 'reshape2', 'tidyverse', 'lubridate', 'EpiEstim', 'incidence', 'remotes'))"
- name: Run Script
run: |
Rscript -e 'source("00_System/CreateTable.R")'
- name: Git Auto Commit
uses: stefanzweifel/[email protected]
with:
commit_message: 🙆表示用データセット作成
ref: ${{ github.head_ref }}
merge:
needs: [label, generate]
name: Auto merge data update pull request
runs-on: ubuntu-latest
steps:
- uses: "pascalgn/[email protected]"
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
MERGE_LABELS: "data_update"
MERGE_METHOD: "squash"