diff options
author | Alexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com> | 2022-10-30 12:17:49 +0300 |
---|---|---|
committer | Alexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com> | 2022-10-30 12:17:49 +0300 |
commit | 6b4e13863baf67958467e5cd34c56f5345749399 (patch) | |
tree | abd33b23658c17d04f999a0c4b9aa61d97c9fc00 | |
parent | 66382b943d63ae1f07e77b14a502e738bd224d18 (diff) |
Pipeline
-rw-r--r-- | .github/workflows/release.yml | 6 |
1 files 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
|