Skip to content

Commit

Permalink
tweak auto update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
diceroll123 authored Jan 17, 2025
1 parent 23bbb50 commit 9ef5f03
Showing 1 changed file with 14 additions and 16 deletions.
30 changes: 14 additions & 16 deletions .github/workflows/update_logit_values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ on:
workflow_dispatch:
schedule:
- cron: "0 0 1 * *"
push:
paths:
- "automation/*"

concurrency:
# since this runs on an interval this should be fine
Expand All @@ -23,18 +20,19 @@ jobs:

- name: Run Docker
run: |
cd automation/
docker build -t nfc_values .
docker compose up
sudo chown -R $USER:$USER .
cd ./automation/
docker compose run --rm nfc_values
cp "./output/javascript.js" "./../src/app/constants_logit.js"
- name: Commit and PR changes
# success() ensures the previous job succeeds
if: ${{ success() }}
uses: peter-evans/create-pull-request@v6
- 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:
commit-message: "Autogenerated commit for logit update"
body: |
Update logit with latest data.
branch: update/logit
title: "[Automated] Update logit values"
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }}

0 comments on commit 9ef5f03

Please sign in to comment.