-
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5,470 changed files
with
135,252 additions
and
66,230 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: Build HTML pages for additives knowledge cards | ||
|
||
on: | ||
push | ||
# 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: | | ||
cd knowledge_panels | ||
python3 -m pip install -r requirements.txt --user | ||
python3 build_html.py additives ingredients | ||
- 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@v7 | ||
with: | ||
base: main | ||
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: '💥 Auto-Label Merge Conflicts on PRs' | ||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
triage: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: mschilde/auto-label-merge-conflicts@master | ||
with: | ||
CONFLICT_LABEL_NAME: "💥 Merge Conflicts" | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
MAX_RETRIES: 5 | ||
WAIT_MS: 5000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,11 +15,12 @@ concurrency: | |
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
# same concurrency as off-server staging deployment | ||
environment: off-net | ||
concurrency: off-net | ||
steps: | ||
- name: Checkout git repository | ||
uses: appleboy/ssh-action@v1.0.0 # v0.1.4 | ||
uses: appleboy/ssh-action@v1.1.0 | ||
with: | ||
host: ${{ secrets.HOST }} | ||
username: ${{ secrets.USERNAME }} | ||
|
@@ -37,3 +38,17 @@ jobs: | |
git fetch --depth 1 | ||
# Checkout current commit SHA | ||
git checkout -qf ${{ github.sha }} | ||
# we need to restart staging backend to see deployed changes | ||
- name: Restart staging backend | ||
uses: appleboy/[email protected] | ||
with: | ||
host: ${{ secrets.HOST }} | ||
username: ${{ secrets.USERNAME }} | ||
key: ${{ secrets.SSH_PRIVATE_KEY }} | ||
proxy_host: ${{ secrets.PROXY_HOST }} | ||
proxy_username: ${{ secrets.USERNAME }} | ||
proxy_key: ${{ secrets.SSH_PRIVATE_KEY }} | ||
script: | | ||
# Go to repository directory and restart backend | ||
cd off-net | ||
docker compose restart backend |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,8 +23,8 @@ jobs: | |
# name: Validate HTML5 | ||
# runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
# steps: | ||
# - uses: actions/checkout@v4 | ||
|
||
# - name: Run HTML5 validator | ||
# uses: Cyb3r-Jak3/[email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
products_stats_*.html | ||
.venv | ||
knowledge_panels/responses | ||
__pycache__ | ||
__pycache__ | ||
.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Changelog | ||
|
||
## 1.0.0 (2024-09-25) | ||
|
||
|
||
### Bug Fixes | ||
|
||
* add some who-we-are links ([a6e776e](https://github.com/openfoodfacts/openfoodfacts-web/commit/a6e776e9db7a6c22564088ac99ded67b363ebfb7)), closes [#587](https://github.com/openfoodfacts/openfoodfacts-web/issues/587) | ||
* fr symlinks and PT index.html ([67701a6](https://github.com/openfoodfacts/openfoodfacts-web/commit/67701a694058f1afeb0c6737060b670825c2e1df)) | ||
* remove bogus text ([25b1d59](https://github.com/openfoodfacts/openfoodfacts-web/commit/25b1d598ec397ab0ac44d83267e573103cd5cb94)) | ||
|
||
## 1.0.0 (2024-02-13) | ||
|
||
|
||
### Features | ||
|
||
* Create privacy.html ([8cf043c](https://github.com/openfoodfacts/openfoodfacts-web/commit/8cf043cc0c056b87d728f42aa45aed639d451350)) | ||
* follow-open-food-facts.html ([#526](https://github.com/openfoodfacts/openfoodfacts-web/issues/526)) ([268a958](https://github.com/openfoodfacts/openfoodfacts-web/commit/268a95823453cd807d8eb6c09488c565cd44c740)) | ||
* legal-and-privacy-emails ([#505](https://github.com/openfoodfacts/openfoodfacts-web/issues/505)) ([fe95a62](https://github.com/openfoodfacts/openfoodfacts-web/commit/fe95a62510dac87c042b2498525079c921345ee8)) | ||
* logos for Open Beauty Facts ([#540](https://github.com/openfoodfacts/openfoodfacts-web/issues/540)) ([4bf5c87](https://github.com/openfoodfacts/openfoodfacts-web/commit/4bf5c876f1bed47a5511c191a4ee9e35cbb7cb52)) | ||
* update Nutri-Score based on SpF recos ([fdb1a5a](https://github.com/openfoodfacts/openfoodfacts-web/commit/fdb1a5ad3ad1b123ca7acc4d75990d97a44fd025)) | ||
|
||
|
||
### Bug Fixes | ||
|
||
* ADEME partner added ([#510](https://github.com/openfoodfacts/openfoodfacts-web/issues/510)) ([467b25b](https://github.com/openfoodfacts/openfoodfacts-web/commit/467b25ba79eb4c592d8c6a537a1217ccd2f050be)) | ||
* fixes for issues spotted by [@galnaf](https://github.com/galnaf) in privacy.html ([a0a2772](https://github.com/openfoodfacts/openfoodfacts-web/commit/a0a2772b8842bfc9365db0ce311b2475f4ffa3e1)) | ||
* legal.html ([0f9fc8a](https://github.com/openfoodfacts/openfoodfacts-web/commit/0f9fc8a952226292049944fa6434a07a606ccd93)) | ||
* OBF Symbolic links Italian ([#542](https://github.com/openfoodfacts/openfoodfacts-web/issues/542)) ([fa21864](https://github.com/openfoodfacts/openfoodfacts-web/commit/fa2186438489bd9a85e6abfd6cab918666507e94)) | ||
* privacy urls ([103abd2](https://github.com/openfoodfacts/openfoodfacts-web/commit/103abd2475f74f8c5c0ff0d1925f4e0eac6df5fa)) | ||
* udpate GSOC page ([#532](https://github.com/openfoodfacts/openfoodfacts-web/issues/532)) ([3032104](https://github.com/openfoodfacts/openfoodfacts-web/commit/3032104c787681985ed33198757e287c54a89671)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.