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

Commit 9ff7a4a

Browse files
authored
Merge pull request #47 from staticdev/feature/improved-ci
Add version detection
2 parents 317fa4c + e912bd8 commit 9ff7a4a

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

.github/workflows/release.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,25 @@ jobs:
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+
34+
- name: Check if there is a parent commit
35+
id: check-parent-commit
36+
run: |
37+
echo "::set-output name=sha::$(git rev-parse --verify --quiet HEAD^)"
38+
39+
- name: Detect and tag new version
40+
id: check-version
41+
if: steps.check-parent-commit.outputs.sha
42+
uses: salsify/action-detect-and-tag-new-version@v2.0.1
43+
with:
44+
tag-template: "{VERSION}"
45+
version-command: |
46+
bash -o pipefail -c "poetry version | awk '{ print \$2 }'"
47+
2948
- name: Install Ansible
3049
run: |
3150
pip install --constraint=.github/workflows/constraints.txt ansible

requirements.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
roles:
33
- name: staticdev.pyenv
4-
version: 2.0.0
4+
version: 2.1.1
55
- name: gantsign.visual-studio-code
66
version: 6.6.0
77
when: "{{ install_vscode }}"

0 commit comments

Comments
 (0)