From 6b4e13863baf67958467e5cd34c56f5345749399 Mon Sep 17 00:00:00 2001 From: Alexey 'Cluster' Avdyukhin Date: Sun, 30 Oct 2022 13:17:49 +0400 Subject: Pipeline --- .github/workflows/release.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2f9c4bf..4bba8a0 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -12,9 +12,9 @@ jobs: uses: ncipollo/release-action@v1 with: token: ${{ secrets.GITHUB_TOKEN }} - tag: ${{ github.event.repository.updated_at}} + tag: ${{ github.head_ref || github.ref_name }} commit: master - name: Release ${{ github.event.repository.updated_at}} + name: Release ${{ github.head_ref || github.ref_name }} draft: true - name: Output Release URL File run: echo "${{ steps.create_release.outputs.upload_url }}" > release_url.txt @@ -72,7 +72,7 @@ jobs: - name: Get Release File Name & Upload URL id: get_release_info env: - TAG_REF_NAME: ${{ github.ref }} + TAG_REF_NAME: ${{ github.head_ref || github.ref_name }} REPOSITORY_NAME: ${{ github.repository }} run: | echo file_name=${REPOSITORY_NAME##*/}-${TAG_REF_NAME##*/v} >> $GITHUB_OUTPUT -- cgit v1.2.3