-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathpos-update-compat-versions-matrix.yml
More file actions
47 lines (41 loc) · 1.25 KB
/
pos-update-compat-versions-matrix.yml
File metadata and controls
47 lines (41 loc) · 1.25 KB
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
45
46
47
name: PoS Compat Versions Check
on:
pull_request:
branches:
- main
paths:
- "scripts/pos-version-matrix/**"
- "scenarios/pos/**"
- "tests/pos/**"
- ".github/workflows/pos-*.yml"
workflow_dispatch: {}
permissions:
contents: read
jobs:
check-compat-versions:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Install dependencies
run: pip install -q -r scripts/pos-version-matrix/requirements.txt
- name: Check for new releases
env:
GITHUB_TOKEN: ${{ github.token }}
run: |
python3 scripts/pos-version-matrix/update-compat-versions.py
if git diff --quiet scripts/pos-version-matrix/compat-versions.yml; then
echo "compat-versions.yml is up to date."
else
echo "New bor/erigon releases are available that are not in compat-versions.yml."
echo ""
echo "To update, run:"
echo " make update-pos-compat-versions"
echo ""
echo "then commit the result."
echo ""
echo "Diff:"
git diff scripts/pos-version-matrix/compat-versions.yml
exit 1
fi