wip
This commit is contained in:
parent
b32cfcd4c1
commit
f208079d80
48
.github/workflows/exp.yml
vendored
48
.github/workflows/exp.yml
vendored
|
@ -29,24 +29,36 @@ 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/}"
|
||||||
git fetch origin wip-$BRANCH:wip-$BRANCH
|
if [ "$VERSION" != "$BRANCH" ]; then
|
||||||
if [ $? -ne 0 ]; then
|
echo "COMMIT IN VERSION BRANCH"
|
||||||
echo "TAG NOT FOUND"
|
git fetch origin wip-$BRANCH:wip-$BRANCH
|
||||||
|
if [ $? -ne 0 ]; then
|
||||||
|
echo "TAG NOT FOUND"
|
||||||
|
else
|
||||||
|
TAGSHA=$(git rev-parse wip-$BRANCH)
|
||||||
|
echo "FOUND TAG $TAGSHA"
|
||||||
|
if [ "$TAGSHA" != "${{ github.sha }}" ]; then
|
||||||
|
echo "BAD TAG"
|
||||||
|
else
|
||||||
|
echo "GOOD TAG"
|
||||||
|
fi
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
TAGSHA=$(git rev-parse wip-$BRANCH)
|
echo "COMMIT IN NON-VERSION BRANCH"
|
||||||
echo "FOUND TAG $TAGSHA"
|
|
||||||
if [ "$TAGSHA" != "${{ github.sha }}" ]; then
|
|
||||||
echo "BAD TAG"
|
|
||||||
else
|
|
||||||
echo "GOOD TAG"
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
else
|
exit 0
|
||||||
# a tag?
|
|
||||||
echo "TAG"
|
|
||||||
fi
|
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