Skip to content

Commit ba27535

Browse files
authored
Merge pull request #3 from keboola/ujovlado-orch-id-as-string
Fix branch detection in workflow configuration
2 parents 1bc0ce3 + 4c52d68 commit ba27535

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

.github/workflows/push.yml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,5 @@
11
name: Keboola Component Build & Deploy Pipeline
2-
on:
3-
push:
4-
branches:
5-
- 'feature/*'
6-
- 'bug/*'
7-
tags:
8-
- '*' # Skip the workflow on the main branch without tags
2+
on: [ push ]
93

104
concurrency: ci-${{ github.ref }} # to avoid tag collisions in the ECR
115
env:
@@ -47,7 +41,7 @@ jobs:
4741
echo "branch_name=$branch_name" | tee -a $GITHUB_OUTPUT
4842
else
4943
raw=$(git branch -r --contains ${{ github.ref }})
50-
branch="$(echo ${raw//origin\//} | tr -d '\n')"
44+
branch="$(echo ${raw/*origin\//} | tr -d '\n')"
5145
echo "branch_name=$branch" | tee -a $GITHUB_OUTPUT
5246
fi
5347

0 commit comments

Comments
 (0)