Compare commits

...

3 Commits

Author SHA1 Message Date
eb895398ab fix: trying again to fix the pipeline 2024-10-29 15:46:52 +01:00
867abd7054 fix: fixed workflow again 2024-10-29 15:33:54 +01:00
8a3a60dbb0 fix: fixed workflow again 2024-10-29 15:30:42 +01:00

View File

@@ -12,14 +12,12 @@ on:
- "**/CHANGELOG.md"
pull_request:
branches:
- master
- dev
workflow_dispatch:
jobs:
lint:
runs-on: ubuntu-latest
if: github.ref_name != 'master'
steps:
- uses: actions/checkout@v4
- uses: psf/black@stable
@@ -36,7 +34,6 @@ jobs:
test:
runs-on: ubuntu-latest
needs: lint
if: github.ref_name != 'master'
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
@@ -48,7 +45,7 @@ jobs:
tag_and_publish:
runs-on: ubuntu-latest
if: github.ref_name == 'dev' || github.ref_name == 'master'
if: github.ref_name == 'master' || github.ref_name == 'dev'
needs: test
permissions:
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
@@ -86,13 +83,12 @@ jobs:
version_format: ${{ steps.version_format.outputs.version_format }}
- name: Create & Push Tag
if: github.ref_name == 'master' || github.ref_name == 'dev'
run: |
git tag ${{ steps.git_version.outputs.version }}
git push origin ${{ steps.git_version.outputs.version }}
- name: Sync tag to dev branch
if: github.ref_name == 'master'
if: github.ref == 'master'
run: |
git fetch origin dev
git checkout dev