-
Notifications
You must be signed in to change notification settings - Fork 3
56 lines (54 loc) · 1.71 KB
/
Copy pathrender.yml
File metadata and controls
56 lines (54 loc) · 1.71 KB
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
46
47
48
49
50
51
52
53
54
55
56
name: Render register
on:
workflow_dispatch:
push:
branches:
- master
jobs:
changes:
runs-on: ubuntu-latest
outputs:
register: ${{ steps.filter.outputs.register }}
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Check
# https://github.com/dorny/paths-filter
uses: dorny/paths-filter@v4
id: filter
with:
filters: |
register:
- 'register.csv'
- 'venues.csv'
render:
needs: changes
if: ${{ needs.changes.outputs.register == 'true' }}
runs-on: ubuntu-latest
container:
image: codecheckers/register:latest
steps:
- name: Checkout
uses: actions/checkout@v6
- run: git config --system --add safe.directory /__w/register/register
- name: Rate before
run: |
curl -s -H "Authorization: token $GITHUB_PAT" -H "Accept: application/vnd.github.v3+json" https://api.github.com/rate_limit | head -20
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
- name: Render
run: |
R -e 'options("R.cache.rootPath" = "/tmp"); codecheck::register_render(); warnings()'
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
- name: Rate after
if: always()
run: |
curl -s -H "Authorization: token $GITHUB_PAT" -H "Accept: application/vnd.github.v3+json" https://api.github.com/rate_limit | head -20
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
- name: Update register
uses: stefanzweifel/git-auto-commit-action@v7
with:
commit_author: CODECHECK bot <daniel.nuest@tu-dresden.de>
commit_message: Update register renderings