Skip to content
This repository has been archived by the owner on Aug 6, 2024. It is now read-only.

Commit

Permalink
chore: get latestBinaryVersion before prod tests and deploy (#652)
Browse files Browse the repository at this point in the history
  • Loading branch information
dalsontws authored Sep 21, 2022
1 parent cc2d7b5 commit 7c682f2
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy_branch_preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ jobs:
- name: Get Latest Binary Version # Binary Version will be x.x.x based on the latest tag
id: latestBinaryVersion
run: |
# Release tag finds the lastest tag in the tree branch - i.e. prod-x.x.x
# Release tag finds the latest tag in the tree branch - i.e. prod-x.x.x
RELEASE_TAG=$(echo $(git describe --tags --abbrev=0))
# Using param substitution, we output x.x.x instead
echo "::set-output name=version::${RELEASE_TAG#*-}"
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/deploy_prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,13 @@ jobs:
- uses: actions/setup-node@v1
with:
node-version: 12.x
- name: Get Latest Binary Version # Binary Version will be x.x.x based on the latest tag
id: latestBinaryVersion
run: |
# Release tag finds the latest tag in the tree branch - i.e. prod-x.x.x
RELEASE_TAG=$(echo $(git describe --tags --abbrev=0))
# Using param substitution, we output x.x.x instead
echo "::set-output name=version::${RELEASE_TAG#*-}"
- name: Install Packages
run: |
npm config set //npm.pkg.github.com/:_authToken $NPM_TOKEN
Expand Down Expand Up @@ -92,13 +99,6 @@ jobs:
npm ci
env:
NPM_TOKEN: ${{ secrets.GH_TOKEN_SUPPLYALLY_BOT }}
- name: Get Latest Binary Version # Binary Version will be x.x.x based on the latest tag
id: latestBinaryVersion
run: |
# Release tag finds the lastest tag in the tree branch - i.e. prod-x.x.x
RELEASE_TAG=$(echo $(git describe --tags --abbrev=0))
# Using param substitution, we output x.x.x instead
echo "::set-output name=version::${RELEASE_TAG#*-}"
- name: Echo Version Details
run: |
echo Build number is $GITHUB_RUN_NUMBER
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy_staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ jobs:
- name: Get Latest Binary Version # Binary Version will be x.x.x based on the latest tag
id: latestBinaryVersion
run: |
# Release tag finds the lastest tag in the tree branch - i.e. prod-x.x.x
# Release tag finds the latest tag in the tree branch - i.e. prod-x.x.x
RELEASE_TAG=$(echo $(git describe --tags --abbrev=0))
# Using param substitution, we output x.x.x instead
echo "::set-output name=version::${RELEASE_TAG#*-}"
Expand Down

0 comments on commit 7c682f2

Please sign in to comment.