Support releasing from different branch (#249)

* ci: support releasing from different branch
* fix: git tags are not fetched

This preveted to detect if a `LIB_TAG` is already there.

Signed-off-by: Julian Strobl <jmastr@mailbox.org>
This commit is contained in:
Julian Strobl 2023-12-22 11:25:32 +01:00 committed by GitHub
parent 926fc76659
commit a1d6923ca3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -25,6 +25,14 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3
with:
ref: ${{ github.ref_name }}
- name: Fetch tags
run: |
# Cannot use `fetch-tags: true` due to:
# https://github.com/actions/checkout/issues/1471
git fetch --prune --unshallow --tags
- name: Tag
run: |