mirror of
https://github.com/creyD/creyPY.git
synced 2026-04-12 19:30:30 +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
|
||||
with:
|
||||
fetch-tags: true
|
||||
ref: ${{ github.ref }}
|
||||
ref: ${{ github.head_ref }}
|
||||
fetch-depth: 0
|
||||
|
||||
- name: setup git
|
||||
@@ -74,9 +74,9 @@ jobs:
|
||||
- name: Create Tag
|
||||
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/dev'
|
||||
run: |
|
||||
if [ "${{ github.ref }}" == "refs/heads/master" ]; then
|
||||
if [ "${{ github.head_ref }}" == "master" ]; then
|
||||
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
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user