wip
This commit is contained in:
parent
b32cfcd4c1
commit
f208079d80
26
.github/workflows/exp.yml
vendored
26
.github/workflows/exp.yml
vendored
|
@ -29,11 +29,13 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
git log --graph --pretty=format':%h%%d %s %an, %ar' | head -n 5
|
git log --graph --pretty=format':%h%%d %s %an, %ar' | head -n 5
|
||||||
echo "--"
|
echo "--"
|
||||||
BRANCH="${{ github.ref }}"
|
REF="${{ github.ref }}"
|
||||||
BRANCH=${BRANCH#refs/heads/r/}"
|
BRANCH=${REF#refs/heads/}"
|
||||||
if [ "$BRANCH" != "${{ github.ref }}" ]; then
|
|
||||||
# a commit, not a tag
|
if [ "$BRANCH" != "$REF" ]; then
|
||||||
echo "COMMIT"
|
VERSION=${BRANCH#release/}"
|
||||||
|
if [ "$VERSION" != "$BRANCH" ]; then
|
||||||
|
echo "COMMIT IN VERSION BRANCH"
|
||||||
git fetch origin wip-$BRANCH:wip-$BRANCH
|
git fetch origin wip-$BRANCH:wip-$BRANCH
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
echo "TAG NOT FOUND"
|
echo "TAG NOT FOUND"
|
||||||
|
@ -47,6 +49,16 @@ jobs:
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
# a tag?
|
echo "COMMIT IN NON-VERSION BRANCH"
|
||||||
echo "TAG"
|
|
||||||
fi
|
fi
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
TAG=${REF#refs/tags/}"
|
||||||
|
if [ "$TAG" != "$REF" ]; then
|
||||||
|
echo "TAG"
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "ERR"
|
||||||
|
exit 1
|
||||||
|
|
Loading…
Reference in New Issue
Block a user