-
Notifications
You must be signed in to change notification settings - Fork 158
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
765 additions
and
220 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: Update Blockers Meta | ||
|
||
on: | ||
push: | ||
paths: | ||
- 'blockers/list.json' | ||
- '*.go' | ||
- '.github/workflows/update-blockers.yml' | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
check_blockers: | ||
runs-on: ubuntu-latest | ||
env: | ||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
steps: | ||
- uses: actions/setup-go@v5 | ||
with: | ||
go-version: 1.19 | ||
- uses: actions/checkout@v4 | ||
- name: Create local changes | ||
run: | | ||
go build | ||
./main -target blockers | ||
- name: set up python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.12' | ||
cache: 'pipenv' | ||
- name: install dependencies | ||
run: | | ||
python -m pip install --upgrade pipenv wheel | ||
pipenv install --deploy | ||
- name: run mkblockers | ||
run: | | ||
jq --sort-keys --indent 2 < blockers.json >blockers-sorted.json | ||
pipenv run ./mkblockers | ||
if ! (cmp -s blockers-sorted.json blockers-new.json); then | ||
echo "Error: output from mkblockers differs from legacy blockers builder." | ||
diff -u blockers-sorted.json blockers-new.json | ||
exit 1 | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
[packages] | ||
pyyaml = "6.0.1" | ||
jsonschema = "4.21.1" | ||
requests = "2.31.0" | ||
requests = "2.32.3" | ||
PyGithub = "2.4.0" | ||
|
||
[dev-packages] | ||
black = "24.10.0" | ||
|
||
[requires] | ||
python_version = "*" | ||
python_version = "3.12" |
Oops, something went wrong.