Skip to content

Commit

Permalink
More versioning fun
Browse files Browse the repository at this point in the history
  • Loading branch information
flowstate committed Nov 6, 2024
1 parent 55e0b41 commit c738a85
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/pr-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ jobs:
- name: Set preview version
run: |
BASE_VERSION=$(grep -o "__version__.*" socketsecurity/__init__.py | awk '{print $3}' | tr -d "'")
SHORT_SHA=$(git rev-parse --short HEAD)
PREVIEW_VERSION="${BASE_VERSION}.dev${GITHUB_PR_NUMBER}.post${SHORT_SHA}"
SHORT_SHA=$(echo "${{ github.event.pull_request.head.sha }}" | cut -c1-7)
PREVIEW_VERSION="${BASE_VERSION}.dev${{ github.event.pull_request.number }}.post${SHORT_SHA}"
echo "VERSION=${PREVIEW_VERSION}" >> $GITHUB_ENV
# Update version in __init__.py
Expand Down

0 comments on commit c738a85

Please sign in to comment.