mirror of
https://github.com/bitcoin/bips.git
synced 2024-11-19 01:40:05 +01: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:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v4
|
||||
- run: scripts/link-format-chk.sh
|
||||
Build-Table-Checks:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v4
|
||||
- run: scripts/buildtable.pl >/tmp/table.mediawiki || exit 1
|
||||
Diff-Checks:
|
||||
name: "Diff Checks (fails until number assignment)"
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 2
|
||||
- run: scripts/diffcheck.sh
|
||||
|
@ -1,5 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
scripts/buildtable.pl >/tmp/table.mediawiki 2> /dev/null
|
||||
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
|
||||
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"
|
||||
exit 1
|
||||
fi
|
||||
echo "README table matches expected table from BIP files"
|
||||
else
|
||||
echo 'Cannot build previous commit table for comparison'
|
||||
exit 1
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user