Skip to content

Commit c4582dd

Browse files
committed
Update workflows from templates.
1 parent 9b702e0 commit c4582dd

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.github/bump-version.set.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ if [ "${NEWVERS/-*/}" = "0.0.0" ] ; then
2727
echo "Illegal zero version '${NEWVERS}'" 1>&2
2828
exit 1
2929
fi
30-
# Sanity check: Must start with a valid semver.
31-
if ! [[ ${NEWVERS} =~ ^(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)(-((0|[1-9][0-9]*|[0-9]*[a-zA-Z-][0-9a-zA-Z-]*)(\.(0|[1-9][0-9]*|[0-9]*[a-zA-Z-][0-9a-zA-Z-]*))*))?(\+([0-9a-zA-Z-]+(\.[0-9a-zA-Z-]+)*))? ]] ; then
30+
# Sanity check: Must start with a valid semver, with an optional leading "v".
31+
if ! [[ ${NEWVERS} =~ ^v?(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)(-((0|[1-9][0-9]*|[0-9]*[a-zA-Z-][0-9a-zA-Z-]*)(\.(0|[1-9][0-9]*|[0-9]*[a-zA-Z-][0-9a-zA-Z-]*))*))?(\+([0-9a-zA-Z-]+(\.[0-9a-zA-Z-]+)*))? ]] ; then
3232
echo "Invalid version '${NEWVERS}'" 1>&2
3333
exit 1
3434
fi

.github/workflows/update-workflows.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ jobs:
1616
update:
1717
runs-on: ubuntu-20.04
1818
steps:
19-
- uses: actions/setup-python@v3
19+
- uses: actions/setup-python@v4
20+
with:
21+
python-version: 3.x
2022
- name: Install JSON tools
2123
run: pip3 install jsonpatch pyyaml
2224
- name: Build yaml2json, json2yaml

0 commit comments

Comments
 (0)