Skip to content

Commit

Permalink
Add short sha to version
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanformio committed Mar 19, 2024
1 parent b84ee54 commit 65e7011
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/repo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,9 @@ jobs:
id: prep
run: |
PR_NUMBER=$(echo ${{ github.event.number }})
COMMIT_SHORT_SHA=$(${{ github.event.pull_request.head.sha }} | cut -c1-7)
CURRENT_VERSION=$(node -p "require('./package.json').version")
NEW_VERSION="${CURRENT_VERSION}-dev.${PR_NUMBER}.0"
NEW_VERSION="${CURRENT_VERSION}-dev.${PR_NUMBER}.${COMMIT_SHORT_SHA}"
echo "NEW_VERSION=$NEW_VERSION" >> $GITHUB_ENV
- name: Echo version for testing
Expand Down

0 comments on commit 65e7011

Please sign in to comment.