Skip to content

Commit

Permalink
Fix all package release scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
joelwurtz committed Sep 23, 2020
1 parent c85d0d8 commit 1ee426d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/beta-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,18 @@ jobs:
runs-on: ubuntu-latest
steps:
-
name: Set major version
name: Set version
env:
VERSION: ${{ github.ref }}
REF: ${{ github.ref }}
run: VERSION=`sed -E 's/[^0-9]+?([0-9]+\.[0-9]+\.[0-9]+.+?)/\1/' <<< $REF` && echo "::set-env name=VERSION::$VERSION"

-
name: Set major version
run: MAJOR_VERSION=`sed -E 's/[^0-9]+?([0-9]+)\.([0-9]+)\.([0-9]+).+?/\1/' <<< $VERSION` && echo "::set-env name=MAJOR_VERSION::$MAJOR_VERSION"

-
name: Trigger Circle CI API
env:
VERSION: ${{ github.ref }}
CIRCLE_API_TOKEN: ${{ secrets.CIRCLE_API_TOKEN }}
run: >
curl --request POST
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/stable-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,18 @@ jobs:
runs-on: ubuntu-latest
steps:
-
name: Set major version
name: Set version
env:
VERSION: ${{ github.ref }}
REF: ${{ github.ref }}
run: VERSION=`sed -E 's/[^0-9]+?([0-9]+\.[0-9]+\.[0-9]+.+?)/\1/' <<< $REF` && echo "::set-env name=VERSION::$VERSION"

-
name: Set major version
run: MAJOR_VERSION=`sed -E 's/[^0-9]+?([0-9]+)\.([0-9]+)\.([0-9]+).+?/\1/' <<< $VERSION` && echo "::set-env name=MAJOR_VERSION::$MAJOR_VERSION"

-
name: Trigger Circle CI API
env:
VERSION: ${{ github.ref }}
CIRCLE_API_TOKEN: ${{ secrets.CIRCLE_API_TOKEN }}
run: >
curl --request POST
Expand Down

0 comments on commit 1ee426d

Please sign in to comment.