Add debug output for CI pipeline

This commit is contained in:
eikendev 2021-07-18 23:55:41 +02:00
parent 32e68b9df7
commit 930305e912
No known key found for this signature in database
GPG key ID: A1BDB1B28C8EF694

View file

@ -21,7 +21,9 @@ jobs:
if: ${{ startsWith(github.ref, 'refs/tags/v') && github.event_name == 'push' }} # Otherwise will fail on pull requests.
run: |
raw=$(git branch -r --contains ${{ github.ref }})
echo "$raw"
branch=${raw##*/}
echo "$branch"
echo "BRANCH=$branch" >> $GITHUB_ENV
- name: Login to Docker Hub
if: ${{ startsWith(github.ref, 'refs/tags/v') && github.event_name == 'push' && env.BRANCH == 'master' }} # Only login for tagged commits pushed to master.