-
Notifications
You must be signed in to change notification settings - Fork 162
44 lines (42 loc) · 1.12 KB
/
check-blockers.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
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