Skip to content

Commit

Permalink
Release tagging needs the full SHA
Browse files Browse the repository at this point in the history
  • Loading branch information
jleibs committed May 2, 2023
1 parent cef57fd commit ca2e826
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/manual_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
fetch-depth: 0 # Don't do a shallow clone since we need it for finding the full commit hash

- name: Add SHORT_SHA env property with commit short sha
run: |
Expand All @@ -35,6 +37,11 @@ jobs:
fi
echo "SHORT_SHA=$(echo $USED_SHA | cut -c1-7)" >> $GITHUB_ENV
- name: Expand short hash to FULL_SHA hash
run: |
FULL_SHA=$(git rev-parse ${{ env.SHORT_SHA }})
echo "FULL_SHA=$FULL_SHA" >> $GITHUB_ENV
- id: "auth"
uses: google-github-actions/auth@v1
with:
Expand Down Expand Up @@ -78,7 +85,7 @@ jobs:
with:
token: ${{ secrets.GITHUB_TOKEN }}
name: "Release - ${{ inputs.RELEASE_VERSION }}"
commit: ${{ env.SHORT_SHA }}
commit: ${{ env.FULL_SHA }}
tag: ${{ inputs.RELEASE_VERSION }}
artifacts: "wheels/*.whl"
generateReleaseNotes: true
Expand Down

0 comments on commit ca2e826

Please sign in to comment.