Skip to content

Commit 1f0119f

Browse files
authored
Fix/workflows (#11)
* chore: fix workflow execution * chore: fix version check in CICD pipeline
1 parent eb20e60 commit 1f0119f

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ on:
77
pull_request:
88
types: [opened, synchronize]
99
branches:
10+
- main
1011
- dev
1112
workflow_call:
1213
workflow_dispatch:

.github/workflows/cicd.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,6 @@ on:
44
push:
55
branches:
66
- main
7-
pull_request:
8-
types: [opened, synchronize]
9-
branches:
10-
- main
117
workflow_dispatch:
128

139
jobs:
@@ -33,13 +29,13 @@ jobs:
3329
- name: Get version from pyproject.toml
3430
id: get_version
3531
run: |
36-
echo ::set-output name=VERSION::$(poetry version -s)
32+
echo "VERSION=$(poetry version -s)" >> $GITHUB_OUTPUT
3733
3834
- name: Get latest release version
3935
id: get_latest_release
4036
run: |
4137
latest_release=$(curl -s https://api.github.com/repos/${{ github.repository }}/releases/latest | jq -r .tag_name)
42-
echo ::set-output name=LATEST_VERSION::${latest_release#v}
38+
echo "LATEST_VERSION=${latest_release#v}" >> $GITHUB_OUTPUT
4339
4440
- name: Compare versions
4541
run: |

0 commit comments

Comments
 (0)