From aca59aa6e04aa5b08d3bfdfd99de1a70a43663d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timo=20Hei=C3=9F?= Date: Fri, 4 Oct 2024 12:08:39 +0200 Subject: [PATCH 1/2] chore: fix workflow execution --- .github/workflows/ci.yml | 1 + .github/workflows/cicd.yml | 4 ---- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 542e233..be286c3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,6 +7,7 @@ on: pull_request: types: [opened, synchronize] branches: + - main - dev workflow_call: workflow_dispatch: diff --git a/.github/workflows/cicd.yml b/.github/workflows/cicd.yml index bcfdffc..4c746d4 100644 --- a/.github/workflows/cicd.yml +++ b/.github/workflows/cicd.yml @@ -4,10 +4,6 @@ on: push: branches: - main - pull_request: - types: [opened, synchronize] - branches: - - main workflow_dispatch: jobs: From 72fccb3f248d59ccc69b45dcc6a754a64fcd75de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timo=20Hei=C3=9F?= Date: Fri, 4 Oct 2024 12:20:34 +0200 Subject: [PATCH 2/2] chore: fix version check in CICD pipeline --- .github/workflows/cicd.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cicd.yml b/.github/workflows/cicd.yml index 4c746d4..c3e45cd 100644 --- a/.github/workflows/cicd.yml +++ b/.github/workflows/cicd.yml @@ -29,13 +29,13 @@ jobs: - name: Get version from pyproject.toml id: get_version run: | - echo ::set-output name=VERSION::$(poetry version -s) + echo "VERSION=$(poetry version -s)" >> $GITHUB_OUTPUT - name: Get latest release version id: get_latest_release run: | latest_release=$(curl -s https://api.github.com/repos/${{ github.repository }}/releases/latest | jq -r .tag_name) - echo ::set-output name=LATEST_VERSION::${latest_release#v} + echo "LATEST_VERSION=${latest_release#v}" >> $GITHUB_OUTPUT - name: Compare versions run: |