wip
This commit is contained in:
parent
d3e906333b
commit
831ab5452e
21
.github/workflows/exp.yml
vendored
21
.github/workflows/exp.yml
vendored
|
@ -17,6 +17,7 @@ jobs:
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
echo "github.ref: '${{ github.ref }}'"
|
echo "github.ref: '${{ github.ref }}'"
|
||||||
|
echo "github.sha: '${{ github.sha }}'"
|
||||||
|
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
@ -27,3 +28,23 @@ 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
|
||||||
|
# a commit, not a tag
|
||||||
|
echo "COMMIT"
|
||||||
|
BRANCH="${{ github.ref }}#refs/heads/"
|
||||||
|
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
|
||||||
|
# a tag?
|
||||||
|
echo "TAG"
|
||||||
|
fi
|
Loading…
Reference in New Issue
Block a user