mirror of
https://github.com/bitcoin/bips.git
synced 2025-05-12 12:03:29 +00:00
Merge pull request #1578 from achow101/fix-ci
ci: Update diff checks so that the task actually works
This commit is contained in:
commit
253dd0999e
9
.github/workflows/github-action-checks.yml
vendored
9
.github/workflows/github-action-checks.yml
vendored
@ -5,15 +5,18 @@ jobs:
|
|||||||
Link-Format-Checks:
|
Link-Format-Checks:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
- run: scripts/link-format-chk.sh
|
- run: scripts/link-format-chk.sh
|
||||||
Build-Table-Checks:
|
Build-Table-Checks:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
- run: scripts/buildtable.pl >/tmp/table.mediawiki || exit 1
|
- run: scripts/buildtable.pl >/tmp/table.mediawiki || exit 1
|
||||||
Diff-Checks:
|
Diff-Checks:
|
||||||
|
name: "Diff Checks (fails until number assignment)"
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
fetch-depth: 2
|
||||||
- run: scripts/diffcheck.sh
|
- run: scripts/diffcheck.sh
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
scripts/buildtable.pl >/tmp/table.mediawiki 2> /dev/null
|
||||||
diff README.mediawiki /tmp/table.mediawiki | grep '^[<>] |' >/tmp/after.diff || true
|
diff README.mediawiki /tmp/table.mediawiki | grep '^[<>] |' >/tmp/after.diff || true
|
||||||
if git checkout HEAD^ && scripts/buildtable.pl >/tmp/table.mediawiki 2>/dev/null; then
|
if git checkout HEAD^ && scripts/buildtable.pl >/tmp/table.mediawiki 2>/dev/null; then
|
||||||
diff README.mediawiki /tmp/table.mediawiki | grep '^[<>] |' >/tmp/before.diff || true
|
diff README.mediawiki /tmp/table.mediawiki | grep '^[<>] |' >/tmp/before.diff || true
|
||||||
@ -8,6 +9,8 @@ if git checkout HEAD^ && scripts/buildtable.pl >/tmp/table.mediawiki 2>/dev/null
|
|||||||
echo "$newdiff"
|
echo "$newdiff"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
echo "README table matches expected table from BIP files"
|
||||||
else
|
else
|
||||||
echo 'Cannot build previous commit table for comparison'
|
echo 'Cannot build previous commit table for comparison'
|
||||||
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user