Skip to content

Commit dfe2921

Browse files
committed
WIP debugging
1 parent 684f1e1 commit dfe2921

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,19 +31,19 @@ jobs:
3131
3232
- name: Fetch all tags
3333
run: |
34-
git fetch --prune --unshallow || true
35-
git fetch --tags --quiet
34+
git fetch --prune --unshallow || echo "Already unshallowed or failed, continuing"
35+
git fetch --tags --quiet || echo "Failed to fetch tags, continuing"
3636
3737
- name: Ensure tag is newer than latest
3838
run: |
3939
CURRENT="${{ steps.extract-tag.outputs.tag }}"
40-
LATEST=$(git tag --sort=-v:refname | grep -E '^v[0-9]+\.[0-9]+\.[0-9]+$' | head -n 1)
40+
LATEST=$(git tag --sort=-v:refname | grep -E '^v[0-9]+\.[0-9]+\.[0-9]+([ab][0-9]+)?$' | head -n 1)
4141
4242
echo "Current tag: $CURRENT"
4343
echo "Latest tag: $LATEST"
4444
4545
if [ -n "$LATEST" ]; then
46-
python3 -c "from packaging.version import parse; import sys; if parse('$CURRENT'[1:]) <= parse('$LATEST'[1:]): sys.exit('Tag ' + '$CURRENT' + ' is not newer than latest tag ' + '$LATEST')"
46+
python3 -c "from packaging.version import parse; import sys; sys.exit(print(f'Tag {sys.argv[1]} is not newer than latest tag {sys.argv[2]}') or 1) if parse(sys.argv[1][1:]) <= parse(sys.argv[2][1:]) else sys.exit(0)" "$CURRENT" "$LATEST"
4747
fi
4848
4949
build:

0 commit comments

Comments
 (0)