We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c81e5ff commit e37f73bCopy full SHA for e37f73b
.github/workflows/push-e2e-runner.yaml
@@ -46,12 +46,15 @@ jobs:
46
echo "PLATFORM=linux/amd64" >> $GITHUB_ENV
47
48
# create image tag from the correct branch (either from a push or a workflow_dispatch trigger)
49
- if [[ "${{ inputs.branch }}" != "NONE" ]]; then
+ if [[ "${{ inputs.branch }}" ]] && [[ "${{ inputs.branch }}" != "NONE" ]]; then
50
+ echo "Switch to ${{ inputs.branch }}"
51
git checkout "${{ inputs.branch }}"
52
IMAGE_TAG="${{ inputs.branch }}"
53
else
54
+ echo "Use current branch ${{ github.ref }}"
55
IMAGE_TAG=$(git rev-parse --abbrev-ref HEAD)
56
fi
57
+ echo "Use IMAGE_TAG = $IMAGE_TAG"
58
echo "IMAGE_TAG=$IMAGE_TAG" >> $GITHUB_ENV
59
60
- name: Get the last commit short SHA
0 commit comments