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

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
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

justfile

Lines changed: 10 additions & 0 deletions
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

pr-checks/justfile

Lines changed: 1 addition & 6 deletions
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

pr-checks/sync.sh

Lines changed: 9 additions & 0 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy