-
-
Notifications
You must be signed in to change notification settings - Fork 5
38 lines (31 loc) · 1.02 KB
/
update_logit_values.yaml
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
name: Update Logit Values
on:
workflow_dispatch:
schedule:
- cron: "0 0 1 * *"
concurrency:
# since this runs on an interval this should be fine
# but we want concurrency failures since we're doing commits
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
jobs:
update-logit:
name: Update Logit Values
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run Docker
run: |
cd ./automation/
docker compose run --rm nfc_values
cp "./output/javascript.js" "./../src/app/constants_logit.js"
- name: Git stuff
run: |
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git add .
git commit -m "[Automated] Update logit values"
- name: push
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }}