mirror of
https://github.com/github/codeql-action.git
synced 2026-04-18 04:53:16 +00:00
Merge pull request #2774 from github/redsun82/sync
Fix sync recipes and add base `justfile`
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user