Merge pull request #2774 from github/redsun82/sync

Fix sync recipes and add base `justfile`
This commit is contained in:
Paolo Tranquilli 2025-02-19 17:26:08 +01:00 committed by GitHub
commit fb3e7cdd88
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 21 additions and 7 deletions

View file

@ -16,5 +16,5 @@ repos:
name: Synchronize PR check workflows
files: ^.github/workflows/__.*\.yml$|^pr-checks
language: system
entry: python3 pr-checks/sync.py
entry: pr-checks/sync.sh
pass_filenames: false

10
justfile Normal file
View file

@ -0,0 +1,10 @@
# Sync generated files (javascript and PR checks)
sync: build update-pr-checks
# Perform all necessary steps to update the PR checks
update-pr-checks:
pr-checks/sync.sh
# Transpile typescript code into javascript
build:
npm run build

View file

@ -1,6 +1 @@
# Perform all necessary steps to update the PR checks
update-pr-checks:
python3 -m venv env
source env/bin/activate
pip3 install ruamel.yaml
python3 sync.py
set fallback := true

9
pr-checks/sync.sh Executable file
View file

@ -0,0 +1,9 @@
#!/bin/bash
set -e
cd "$(dirname "$0")"
python3 -m venv env
source env/bin/activate
pip3 install ruamel.yaml
python3 sync.py