mirror of https://github.com/bpkg/bpkg
chore(.github/workflows/versions.yml): tidy
parent
ae411ed0f2
commit
6da92da5f1
@ -1,28 +1,28 @@
|
|||||||
name: versions
|
name: versions
|
||||||
|
|
||||||
on:
|
on:
|
||||||
- pull_request
|
- pull_request
|
||||||
- push
|
- push
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
verify-tags:
|
verify-tags:
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
force-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Verify setup.sh for each tag
|
- name: Verify setup.sh for each tag
|
||||||
run: |
|
run: |
|
||||||
for tag in "$(git tag -l"); do
|
for tag in $(git tag -l); do
|
||||||
echo "Verify $tag:"
|
echo "Verify $tag:"
|
||||||
|
|
||||||
curl https://raw.githubusercontent.com/bpkg/bpkg/$tag/setup.sh | bash
|
curl -sLo- "https://raw.githubusercontent.com/bpkg/bpkg/$tag/setup.sh" | bash
|
||||||
version="$(bpkg --version)"
|
version="$(bpkg --version)"
|
||||||
|
|
||||||
if [ "$version" != "$tag" ]; then
|
if [ "$version" != "$tag" ]; then
|
||||||
echo "Failed to verify $tag"
|
echo "Failed to verify $tag"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
Loading…
Reference in New Issue