Skip to content

Commit 1ee426d

Browse files
committed
Fix all package release scripts
1 parent c85d0d8 commit 1ee426d

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed

.github/workflows/beta-release.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,18 @@ jobs:
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

.github/workflows/stable-release.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,18 @@ jobs:
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

0 commit comments

Comments
 (0)