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 99 runs-on : ubuntu-latest
1010 steps :
1111 -
12- name : Set major version
12+ name : Set version
1313 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
1519 run : MAJOR_VERSION=`sed -E 's/[^0-9]+?([0-9]+)\.([0-9]+)\.([0-9]+).+?/\1/' <<< $VERSION` && echo "::set-env name=MAJOR_VERSION::$MAJOR_VERSION"
1620
1721 -
1822 name : Trigger Circle CI API
1923 env :
20- VERSION : ${{ github.ref }}
2124 CIRCLE_API_TOKEN : ${{ secrets.CIRCLE_API_TOKEN }}
2225 run : >
2326 curl --request POST
Original file line number Diff line number Diff line change 99 runs-on : ubuntu-latest
1010 steps :
1111 -
12- name : Set major version
12+ name : Set version
1313 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
1519 run : MAJOR_VERSION=`sed -E 's/[^0-9]+?([0-9]+)\.([0-9]+)\.([0-9]+).+?/\1/' <<< $VERSION` && echo "::set-env name=MAJOR_VERSION::$MAJOR_VERSION"
1620
1721 -
1822 name : Trigger Circle CI API
1923 env :
20- VERSION : ${{ github.ref }}
2124 CIRCLE_API_TOKEN : ${{ secrets.CIRCLE_API_TOKEN }}
2225 run : >
2326 curl --request POST
You can’t perform that action at this time.
0 commit comments