This commit is contained in:
Stephan 2021-06-04 11:55:25 +02:00
parent 831ab5452e
commit b32cfcd4c1

View File

@ -28,10 +28,12 @@ jobs:
shell: bash shell: bash
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
if [ "${{ github.ref }}#refs/heads/" != "${{ github.ref }}" ]; then echo "--"
BRANCH="${{ github.ref }}"
BRANCH=${BRANCH#refs/heads/r/}"
if [ "$BRANCH" != "${{ github.ref }}" ]; then
# a commit, not a tag # a commit, not a tag
echo "COMMIT" echo "COMMIT"
BRANCH="${{ github.ref }}#refs/heads/"
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"