Skip to content

Commit

Permalink
Fix: Increment workflow testing (#93)
Browse files Browse the repository at this point in the history
Signed-off-by: Matthew Watkins <[email protected]>
  • Loading branch information
ModeSevenIndustrialSolutions authored Jul 29, 2024
1 parent 402ef0f commit 9e13aaa
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 14 deletions.
14 changes: 8 additions & 6 deletions .github/actions/semantic-tag-increment/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,17 +69,19 @@ runs:
case "$TYPE" in
major)
((MAJOR += 1))
((MINOR = 0))
((PATCH = 0))
MAJOR=$((MAJOR+1)
MINOR="0"
PATCH="0"
;;
minor)
((MINOR += 1))
((PATCH = 0))
MINOR=$((MINOR+1))
PATCH="0"
;;
patch)
((PATCH += 1))
PATCH=$((PATCH+1))
;;
esac
INCREMENTED="$MAJOR.$MINOR.$PATCH"
echo "Incremented: $INCREMENTED"
echo "tag=${TAG}" >> $GITHUB_OUTPUT
14 changes: 7 additions & 7 deletions .github/workflows/repository.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,13 @@ jobs:
fetch-tags: true
# latest-semantic-tag currently contains a workaround for this behaviour

- name: "Action: python-twine-check"
id: python-twine-check
# yamllint disable-line rule:line-length
uses: os-climate/devops-reusable-workflows/.github/actions/python-twine-check@main
with:
path: "tests/twine"

- name: "Action: semantic-tag-latest"
id: semantic-tag-latest
# yamllint disable-line rule:line-length
Expand All @@ -44,13 +51,6 @@ jobs:
tag: "${{ steps.semantic-tag-latest.outputs.tag }}"
type: "minor"

- name: "Action: python-twine-check"
id: python-twine-check
# yamllint disable-line rule:line-length
uses: os-climate/devops-reusable-workflows/.github/actions/python-twine-check@main
with:
path: "tests/twine"

### Primary Python Workflow Testing ###

identify-content:
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ ci:
exclude: |
(?x)^(
docs\/conf.py|
dco-signoffs/$
dco-signoffs/$|
)$
repos:
Expand Down

0 comments on commit 9e13aaa

Please sign in to comment.