Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Try to build additives files #574

Merged
merged 3 commits into from
Apr 10, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading