Skip to content

Commit fb3e7cd

Browse files
authored
Merge pull request #2774 from github/redsun82/sync
Fix sync recipes and add base `justfile`
2 parents d99c7e8 + ff50469 commit fb3e7cd

File tree

4 files changed

+21
-7
lines changed

4 files changed

+21
-7
lines changed

Diff for: .pre-commit-config.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@ repos:
1616
name: Synchronize PR check workflows
1717
files: ^.github/workflows/__.*\.yml$|^pr-checks
1818
language: system
19-
entry: python3 pr-checks/sync.py
19+
entry: pr-checks/sync.sh
2020
pass_filenames: false

Diff for: justfile

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Sync generated files (javascript and PR checks)
2+
sync: build update-pr-checks
3+
4+
# Perform all necessary steps to update the PR checks
5+
update-pr-checks:
6+
pr-checks/sync.sh
7+
8+
# Transpile typescript code into javascript
9+
build:
10+
npm run build

Diff for: pr-checks/justfile

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

Diff for: pr-checks/sync.sh

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/bash
2+
set -e
3+
4+
cd "$(dirname "$0")"
5+
python3 -m venv env
6+
source env/bin/activate
7+
pip3 install ruamel.yaml
8+
python3 sync.py
9+

0 commit comments

Comments
 (0)