mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 20:14:03 +00:00
Fix git tag support in queue.yml
This commit is contained in:
parent
e930251db5
commit
19bc316cf6
1 changed files with 12 additions and 4 deletions
16
.github/workflows/queue.yml
vendored
16
.github/workflows/queue.yml
vendored
|
|
@ -10,11 +10,19 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- name: Prepare composer version constraint prefix
|
- name: Prepare composer version constraint prefix
|
||||||
run: |
|
run: |
|
||||||
BRANCH=${GITHUB_REF#refs/heads/}
|
if [[ $GITHUB_REF == refs/tags/* ]]; then
|
||||||
if [[ $BRANCH =~ ^[0-9] ]]; then
|
# For refs like "refs/tags/v3.9.0", remove "refs/tags/v" prefix to get just "3.9.0"
|
||||||
echo "VERSION_PREFIX=${BRANCH}-dev" >> $GITHUB_ENV
|
VERSION=${GITHUB_REF#refs/tags/v}
|
||||||
|
echo "VERSION_PREFIX=${VERSION}" >> $GITHUB_ENV
|
||||||
else
|
else
|
||||||
echo "VERSION_PREFIX=dev-${BRANCH}" >> $GITHUB_ENV
|
BRANCH=${GITHUB_REF#refs/heads/}
|
||||||
|
if [[ $BRANCH =~ ^[0-9]\.x$ ]]; then
|
||||||
|
# Branches starting with %d.x need to use -dev suffix
|
||||||
|
echo "VERSION_PREFIX=${BRANCH}-dev" >> $GITHUB_ENV
|
||||||
|
else
|
||||||
|
# All other branches use dev-${branch} prefix
|
||||||
|
echo "VERSION_PREFIX=dev-${BRANCH}" >> $GITHUB_ENV
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
- name: Clone test suite
|
- name: Clone test suite
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue