File tree 2 files changed +11
-8
lines changed
2 files changed +11
-8
lines changed Original file line number Diff line number Diff line change 15
15
- name : Set semantic version variable
16
16
id : set_version
17
17
run : |
18
- TAG=${{ env.TAG }}
19
- SEMANTIC_VERSION=$(echo "${TAG}" | grep -Po "(?<=^|[^0-9])([0-9]+\.[0-9]+\.[0-9]+(\.[0-9]+)?(-[a-zA-Z]+[0-9]*)?)")
18
+ SEMANTIC_VERSION=$(echo "$TAG" | grep -Po "(?<=^|[^0-9])([0-9]+\.[0-9]+\.[0-9]+(\.[0-9]+)?(-[a-zA-Z]+[0-9]*)?)")
20
19
if [ -z "${SEMANTIC_VERSION}" ]; then
21
20
echo "Tag did not start with a semantic version number (e.g., #.#.#; #.#.#.#; #.#.#.#-beta)"
22
21
exit 1
@@ -25,10 +24,10 @@ jobs:
25
24
- name : Output tag & semantic version
26
25
id : outputs
27
26
run : |
28
- echo ${{ env. TAG }}
27
+ echo "$ TAG"
29
28
echo ${{ steps.set_version.outputs.semantic_version }}
30
29
outputs :
31
- tag : ${{ env. TAG }}
30
+ tag : $TAG
32
31
semanticVersion : ${{ steps.set_version.outputs.semantic_version }}
33
32
34
33
buildFrameworkVersions :
Original file line number Diff line number Diff line change @@ -23,15 +23,19 @@ jobs:
23
23
path : ' home/runner/travisci-tools'
24
24
ref : ' master'
25
25
- name : set SDK Branch if PR
26
+ env :
27
+ HEAD_REF : ${{ github.head_ref }}
26
28
if : ${{ github.event_name == 'pull_request' }}
27
29
run : |
28
- echo "SDK_BRANCH=${{ github.head_ref }} " >> $GITHUB_ENV
29
- echo "TRAVIS_BRANCH=${{ github.head_ref }} " >> $GITHUB_ENV
30
+ echo "SDK_BRANCH=$HEAD_REF " >> $GITHUB_ENV
31
+ echo "TRAVIS_BRANCH=$HEAD_REF " >> $GITHUB_ENV
30
32
- name : set SDK Branch if not pull request
33
+ env :
34
+ REF_NAME : ${{ github.ref_name }}
31
35
if : ${{ github.event_name != 'pull_request' }}
32
36
run : |
33
- echo "SDK_BRANCH=${{ github.ref_name }} " >> $GITHUB_ENV
34
- echo "TRAVIS_BRANCH=${{ github.ref_name }} " >> $GITHUB_ENV
37
+ echo "SDK_BRANCH=$REF_NAME " >> $GITHUB_ENV
38
+ echo "TRAVIS_BRANCH=$REF_NAME " >> $GITHUB_ENV
35
39
- name : Trigger build
36
40
env :
37
41
SDK : csharp
You can’t perform that action at this time.
0 commit comments