Skip to content

Commit

Permalink
short github sha
Browse files Browse the repository at this point in the history
  • Loading branch information
linuxfight committed Apr 6, 2024
1 parent 95251dc commit 4239a67
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ jobs:
- name: Checkout Repository
uses: actions/checkout@v4

- name: Shorten Commit SHA
id: shorten_sha
run: echo "::set-output name=short_sha::${GITHUB_SHA:0:7}"

- name: Set up rust
uses: actions-rust-lang/setup-rust-toolchain@v1
- name: Build
Expand All @@ -29,7 +33,7 @@ jobs:
with:
files: |
release.tar.gz
tag_name: ${{ github.sha.slice(0, 7) }}
name: Release ${{ github.sha.slice(0, 7) }}
tag_name: ${{ steps.shorten_sha.outputs.short_sha }}
release_name: Release ${{ steps.shorten_sha.outputs.short_sha }}
body: |
Release for commit ${{ github.sha.slice(0, 7) }}
Release for commit ${{ steps.shorten_sha.outputs.short_sha }}

0 comments on commit 4239a67

Please sign in to comment.