Skip to content
This repository was archived by the owner on Mar 30, 2025. It is now read-only.

Commit 3d51473

Browse files
authored
Merge pull request #197 from staticdev/ci/simplify-release-workflow
Simplify release workflow
2 parents fa3f0b1 + d098beb commit 3d51473

File tree

2 files changed

+4
-24
lines changed

2 files changed

+4
-24
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,18 +19,13 @@ jobs:
1919
- name: Set up Python
2020
uses: actions/setup-python@v4
2121
with:
22-
python-version: "3.10"
22+
python-version: "3.11"
2323

2424
- name: Upgrade pip
2525
run: |
2626
pip install --constraint=.github/workflows/constraints.txt pip
2727
pip --version
2828
29-
- name: Install Poetry
30-
run: |
31-
pip install --constraint=.github/workflows/constraints.txt poetry
32-
poetry --version
33-
3429
- name: Check if there is a parent commit
3530
id: check-parent-commit
3631
run: |
@@ -39,11 +34,11 @@ jobs:
3934
- name: Detect and tag new version
4035
id: check-version
4136
if: steps.check-parent-commit.outputs.sha
42-
uses: salsify/action-detect-and-tag-new-version@v2.0.2
37+
uses: salsify/action-detect-and-tag-new-version@v2
4338
with:
4439
tag-template: "{VERSION}"
4540
version-command: |
46-
bash -o pipefail -c "poetry version | awk '{ print \$2 }'"
41+
cat current-version.txt
4742
4843
- name: Install Ansible
4944
run: |
@@ -53,7 +48,7 @@ jobs:
5348
run: ansible-galaxy role import --api-key ${{ secrets.GALAXY_TOKEN }} $(echo ${{ github.repository }} | cut -d/ -f1) $(echo ${{ github.repository }} | cut -d/ -f2)
5449

5550
- name: Publish the release notes
56-
uses: release-drafter/release-drafter@v5.21.1
51+
uses: release-drafter/release-drafter@v5
5752
with:
5853
publish: ${{ steps.check-version.outputs.tag != '' }}
5954
tag: ${{ steps.check-version.outputs.tag }}

pyproject.toml

Lines changed: 0 additions & 15 deletions
This file was deleted.

0 commit comments

Comments
 (0)