We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5899559 commit 3c1bf1aCopy full SHA for 3c1bf1a
.github/workflows/deploy.yml
@@ -32,6 +32,7 @@ jobs:
32
- name: Get channel information
33
id: get-channel
34
run: |
35
+ echo "Current branch: ${{ steps.branch-names.outputs.current_branch }}"
36
branch_name=${{ steps.branch-names.outputs.current_branch }}
37
38
content=$(cat .releaserc)
test.sh
@@ -0,0 +1,7 @@
1
+branch_name=$(git rev-parse --abbrev-ref HEAD)
2
+
3
+content=$(cat .releaserc)
4
5
+channel=$(echo "$content" | jq -r --arg branch "$branch_name" '.branches[] | select(.name | test("^" + $branch + "$")) | .channel')
6
7
+echo "::set-output name=channel::$channel"
0 commit comments