File tree Expand file tree Collapse file tree 2 files changed +12
-6
lines changed Expand file tree Collapse file tree 2 files changed +12
-6
lines changed Original file line number Diff line number Diff line change 9
9
runs-on : ubuntu-latest
10
10
steps :
11
11
-
12
- name : Set major version
12
+ name : Set version
13
13
env :
14
- VERSION : ${{ github.ref }}
14
+ REF : ${{ github.ref }}
15
+ run : VERSION=`sed -E 's/[^0-9]+?([0-9]+\.[0-9]+\.[0-9]+.+?)/\1/' <<< $REF` && echo "::set-env name=VERSION::$VERSION"
16
+
17
+ -
18
+ name : Set major version
15
19
run : MAJOR_VERSION=`sed -E 's/[^0-9]+?([0-9]+)\.([0-9]+)\.([0-9]+).+?/\1/' <<< $VERSION` && echo "::set-env name=MAJOR_VERSION::$MAJOR_VERSION"
16
20
17
21
-
18
22
name : Trigger Circle CI API
19
23
env :
20
- VERSION : ${{ github.ref }}
21
24
CIRCLE_API_TOKEN : ${{ secrets.CIRCLE_API_TOKEN }}
22
25
run : >
23
26
curl --request POST
Original file line number Diff line number Diff line change 9
9
runs-on : ubuntu-latest
10
10
steps :
11
11
-
12
- name : Set major version
12
+ name : Set version
13
13
env :
14
- VERSION : ${{ github.ref }}
14
+ REF : ${{ github.ref }}
15
+ run : VERSION=`sed -E 's/[^0-9]+?([0-9]+\.[0-9]+\.[0-9]+.+?)/\1/' <<< $REF` && echo "::set-env name=VERSION::$VERSION"
16
+
17
+ -
18
+ name : Set major version
15
19
run : MAJOR_VERSION=`sed -E 's/[^0-9]+?([0-9]+)\.([0-9]+)\.([0-9]+).+?/\1/' <<< $VERSION` && echo "::set-env name=MAJOR_VERSION::$MAJOR_VERSION"
16
20
17
21
-
18
22
name : Trigger Circle CI API
19
23
env :
20
- VERSION : ${{ github.ref }}
21
24
CIRCLE_API_TOKEN : ${{ secrets.CIRCLE_API_TOKEN }}
22
25
run : >
23
26
curl --request POST
You can’t perform that action at this time.
0 commit comments