Check the release runner has its tools before spending ten minutes
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
This commit is contained in:
co-authored by
Claude Opus 5
parent
d8b2fe054c
commit
d9a925ea75
@@ -44,6 +44,21 @@ jobs:
|
||||
# the history to do that.
|
||||
fetch-depth: 0
|
||||
|
||||
- name: The tools this release needs are present
|
||||
# Checked first, because everything below takes about ten minutes and
|
||||
# discovering that the runner image has no python3 at the publishing
|
||||
# step means doing all of it again.
|
||||
run: |
|
||||
missing=
|
||||
for t in git curl python3 tar; do
|
||||
command -v "$t" >/dev/null 2>&1 || missing="$missing $t"
|
||||
done
|
||||
if [ -n "$missing" ]; then
|
||||
echo "::error::This runner is missing:$missing"
|
||||
exit 1
|
||||
fi
|
||||
echo "git, curl, python3 and tar are all present."
|
||||
|
||||
- name: The header version is the tag
|
||||
run: |
|
||||
HEADER=$(ci/version.sh)
|
||||
|
||||
@@ -50,6 +50,21 @@ jobs:
|
||||
# the history to do that.
|
||||
fetch-depth: 0
|
||||
|
||||
- name: The tools this release needs are present
|
||||
# Checked first, because everything below takes about ten minutes and
|
||||
# discovering that the runner image has no python3 at the publishing
|
||||
# step means doing all of it again.
|
||||
run: |
|
||||
missing=
|
||||
for t in git curl python3 tar; do
|
||||
command -v "$t" >/dev/null 2>&1 || missing="$missing $t"
|
||||
done
|
||||
if [ -n "$missing" ]; then
|
||||
echo "::error::This runner is missing:$missing"
|
||||
exit 1
|
||||
fi
|
||||
echo "git, curl, python3 and tar are all present."
|
||||
|
||||
- name: The header version is the tag
|
||||
run: |
|
||||
HEADER=$(ci/version.sh)
|
||||
|
||||
Reference in New Issue
Block a user