Skip to content

Commit

Permalink
Merge pull request #574 from openfoodfacts/teolemon-patch-2
Browse files Browse the repository at this point in the history
feat: Try to build additives files
  • Loading branch information
teolemon authored Apr 10, 2024
2 parents 549d09e + b28d8dc commit 70419f4
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/build-additives.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Build additives

on:
# Allow to be run manually
workflow_dispatch:
schedule:
- cron: "0 19 * * *"

jobs:
update-assets:
if: github.repository_owner == 'openfoodfacts'
runs-on: ubuntu-latest

steps:

- name: Checkout
uses: actions/checkout@v4

- name: Upgrade assets
run: chmod +x knowledge_panels/build_html.py && knowledge_panels/build_html.py

- name: Check for uncommitted changes
id: check-changes
uses: mskri/[email protected]

- name: Create Pull Request
if: steps.check-changes.outputs.outcome == failure()
id: cpr
uses: peter-evans/create-pull-request@v6
with:
base: develop
commit-message: Automated update of additives HTML files
committer: GitHub <[email protected]>
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
signoff: false
branch: auto-update-assets
delete-branch: true
title: 'chore: Update assets'
body: |
Automated update of additives HTML files

0 comments on commit 70419f4

Please sign in to comment.