Skip to content

Commit

Permalink
fix spec checks
Browse files Browse the repository at this point in the history
  • Loading branch information
ChlodAlejandro committed Oct 27, 2023
1 parent aa863a3 commit 392b0ab
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ jobs:
steps:
- uses: actions/checkout@v4
- run: |
EXPECT="$( cat spec.sha1 )"
EXPECT="$( cat spec.json | sha1sum )"
ACTUAL="$( curl https://stream.wikimedia.org/?spec | sha1sum )"
echo "Expected: $EXPECT"
echo "Actual: $ACTUAL"
if [[ "$EXPECT" != "$ACTUAL" ]]; then
echo "Spec has changed. Please update and change the EXPECT value in ./spec.sha1"
echo "Update with \`curl https://stream.wikimedia.org/?spec | sha1sum > spec.sha1\`"
# exit 1
echo "Spec has changed. Please update the code."
echo "Update with \`curl https://stream.wikimedia.org/?spec > spec.json\`"
exit 1
fi
build:
name: Build and test
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/spec.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ jobs:
steps:
- uses: actions/checkout@v3
- run: |
EXPECT="$( cat spec.sha1 )"
EXPECT="$( cat spec.json | sha1sum )"
ACTUAL="$( curl https://stream.wikimedia.org/?spec | sha1sum )"
echo "Expected: $EXPECT"
echo "Actual: $ACTUAL"
if [[ "$EXPECT" != "$ACTUAL" ]]; then
echo "Spec has changed. Please update and change the EXPECT value in ./spec.sha1"
echo "Update with \`curl https://stream.wikimedia.org/?spec | sha1sum > spec.sha1\`"
# exit 1
echo "Spec has changed. Please update the code."
echo "Update with \`curl https://stream.wikimedia.org/?spec > spec.json\`"
exit 1
fi
1 change: 1 addition & 0 deletions spec.json

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion spec.sha1

This file was deleted.

0 comments on commit 392b0ab

Please sign in to comment.