Skip to content

Commit

Permalink
fix: update release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
nataliagranato authored Mar 20, 2024
1 parent 88d3337 commit ec0a120
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,22 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633
with:
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}

- name: Extract commit hash
id: extract_hash
run: |
# Extract the hash of the latest commit
HASH=$(git rev-parse HEAD)
echo "Commit hash: $HASH"
echo "::set-output name=hash::$HASH"
- name: Create Release
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ steps.extract_hash.outputs.hash }}
tag_name: 'release-${{ steps.extract_hash.outputs.hash }}'
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
env:
TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}

0 comments on commit ec0a120

Please sign in to comment.