We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d5a30af commit e1dd21fCopy full SHA for e1dd21f
.github/workflows/ci-release.yml
@@ -2,7 +2,7 @@ name: Release Artifact
2
3
on:
4
push:
5
- branches: [ "main" ]
+ branches: [ "**" ]
6
tags:
7
- '*'
8
@@ -17,6 +17,9 @@ jobs:
17
18
- name: Record event type
19
run: |
20
+ branchName=$(echo "${{ github.ref_name }}")
21
+ echo "branch name is: $branchName"
22
+
23
echo "hello dingo eureka" > event.txt
24
if [ "${{ github.event_name }}" == "pull_request" ]; then
25
echo "EVENT_TYPE=PR" >> $GITHUB_ENV
@@ -27,7 +30,7 @@ jobs:
27
30
echo "TAG_NAME=$tagInfo" >> $GITHUB_ENV
28
31
else
29
32
echo "EVENT_TYPE=PUSH" >> $GITHUB_ENV
- echo "TAG_NAME=latest" >> $GITHUB_ENV
33
+ echo "TAG_NAME=${{ github.ref_name }}" >> $GITHUB_ENV
34
fi
35
36
0 commit comments