We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 55e0b41 commit c738a85Copy full SHA for c738a85
.github/workflows/pr-preview.yml
@@ -15,8 +15,8 @@ jobs:
15
- name: Set preview version
16
run: |
17
BASE_VERSION=$(grep -o "__version__.*" socketsecurity/__init__.py | awk '{print $3}' | tr -d "'")
18
- SHORT_SHA=$(git rev-parse --short HEAD)
19
- 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}"
20
echo "VERSION=${PREVIEW_VERSION}" >> $GITHUB_ENV
21
22
# Update version in __init__.py
0 commit comments