mirror of
https://github.com/creyD/creyPY.git
synced 2026-04-15 21:00:36 +02:00
fix: fixed pipeline tagging
This commit is contained in:
6
.github/workflows/ci.yml
vendored
6
.github/workflows/ci.yml
vendored
@@ -56,7 +56,7 @@ jobs:
|
|||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-tags: true
|
fetch-tags: true
|
||||||
ref: ${{ github.ref }}
|
ref: ${{ github.head_ref }}
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: setup git
|
- name: setup git
|
||||||
@@ -74,9 +74,9 @@ jobs:
|
|||||||
- name: Create Tag
|
- name: Create Tag
|
||||||
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/dev'
|
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/dev'
|
||||||
run: |
|
run: |
|
||||||
if [ "${{ github.ref }}" == "refs/heads/master" ]; then
|
if [ "${{ github.head_ref }}" == "master" ]; then
|
||||||
git tag ${{ steps.git_version.outputs.version }}
|
git tag ${{ steps.git_version.outputs.version }}
|
||||||
elif [ "${{ github.ref }}" == "refs/heads/dev" ]; then
|
elif [ "${{ github.head_ref }}" == "dev" ]; then
|
||||||
git tag ${{ steps.git_version.outputs.version }}-rc
|
git tag ${{ steps.git_version.outputs.version }}-rc
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user