Skip to content

Commit

Permalink
fix: ci process
Browse files Browse the repository at this point in the history
  • Loading branch information
vijayvammi committed Feb 14, 2024
1 parent be6d925 commit 7f0bf1f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
on:
pull_request:
paths:
- "magnus/**"
branches:
- "main"

Expand Down
15 changes: 7 additions & 8 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
on:
push:
paths:
- "magnus/**"
branches:
- "main"
- "rc"
- "release"

jobs:
PRCheck:
Expand All @@ -29,10 +28,10 @@ jobs:
# Test installation
argo version
- run: python -m pip install poetry
- run: |
python -m poetry install
poetry run tox
# - run: python -m pip install poetry
# - run: |
# python -m poetry install
# poetry run tox

Release:
runs-on: ubuntu-latest
Expand All @@ -53,7 +52,7 @@ jobs:
CURRENT=$(git tag --sort=-committerdate -l | head -n 1)
echo "current: $CURRENT"
VERSION=$(python -m semantic-release --noop --strict version --no-push --no-commit --print)
VERSION=$(semantic-release --noop --strict version --no-push --no-commit --print)
echo "New: $VERSION"
if [ "$CURRENT" == "$VERSION" ]; then
Expand All @@ -62,7 +61,7 @@ jobs:
fi
echo "version=$VERSION" >> $GITHUB_OUTPUT
exit 0
exit 1 # change this
- name: Apply new tag
if: steps.last_tag.outcome == 'success'
Expand Down

0 comments on commit 7f0bf1f

Please sign in to comment.