Merge pull request #2774 from github/redsun82/sync
Fix sync recipes and add base `justfile`
This commit is contained in:
commit
fb3e7cdd88
4 changed files with 21 additions and 7 deletions
|
|
@ -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
10
justfile
Normal 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
|
||||
|
|
@ -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
9
pr-checks/sync.sh
Executable 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
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue