diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8b042e0..2b9244d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -10,11 +10,14 @@ 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" @@ -22,7 +25,7 @@ jobs: - 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 }}