Skip to content

Commit

Permalink
Fix: Get rid of broken update dependencies step (#84)
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 97ee2d1 commit 80b1d3e
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 86 deletions.
37 changes: 5 additions & 32 deletions .github/actions/semantic-tag-increment/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ inputs:
required: false
default: "patch"

outputs:
INCREMENTED-TAG:
# Any single/leading non-numeric "v" character will be stripped
description: "The incremented semantic tag [purely numeric]"
value: ${{ steps.increment.outputs.tag }}
#outputs:
# INCREMENTED-TAG:
# # Any single/leading non-numeric "v" character will be stripped
# description: "The incremented semantic tag [purely numeric]"
# value: ${{ steps.increment.outputs.tag }}

runs:
using: "composite"
Expand Down Expand Up @@ -55,30 +55,3 @@ runs:
else
echo "Numeric tag: $TAG"
fi
REGEX='[^0-9]*\([0-9]*\)[.]\([0-9]*\)[.]\([0-9]*\)\([0-9A-Za-z-]*\)'
MAJOR=$(echo "$TAG" | sed -e "s#$REGEX#\1#")
MINOR=$(echo "$TAG" | sed -e "s#$REGEX#\2#")
PATCH=$(echo "$TAG" | sed -e "s#$REGEX#\3#")
case "$TYPE" in
major)
((MAJOR += 1))
((MINOR = 0))
((PATCH = 0))
;;
minor)
((MINOR += 1))
((PATCH = 0))
;;
patch)
((PATCH += 1))
;;
esac
echo "INCREMENTED_TAG=1.1.0" >> $GITHUB_OUTPUT
#INCREMENTED_TAG="$MAJOR.$MINOR.$PATCH"
#echo "Incremented tag: $INCREMENTED_TAG"
#echo "tag=${NEXT_VERSION}" >> $GITHUB_OUTPUT
#echo "tag=$INCREMENTED_TAG" >> $GITHUB_OUTPUT
51 changes: 0 additions & 51 deletions .github/workflows/dependencies.yaml

This file was deleted.

23 changes: 20 additions & 3 deletions .github/workflows/repository.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,26 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: "Update Dependencies"
id: update-dependencies
uses: os-climate/devops-reusable-workflows/.github/actions/python-update-dependencies@main
- name: "Set up Python ${{ env.default-python }}"
uses: actions/setup-python@v5
with:
python-version: ${{ env.default-python }}

- name: "Setup PDM Build Tool"
uses: pdm-project/setup-pdm@v4
with:
python-version: ${{ env.default-python }}

- name: "Update Python dependencies"
uses: pdm-project/update-deps-action@v1
with:
sign-off-commit: "true"
token: ${{ secrets.GH_TOKEN }}
commit-message: "Chore: Update dependencies and pdm.lock [skip ci]"
pr-title: "Update Python module dependencies"
update-strategy: eager
# Whether to install PDM plugins before update
install-plugins: "false"

- name: "Export Dependencies"
id: export-dependencies
Expand Down

0 comments on commit 80b1d3e

Please sign in to comment.