diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml index e6a75bdb..53883d31 100644 --- a/.github/workflows/pr.yaml +++ b/.github/workflows/pr.yaml @@ -1,7 +1,5 @@ on: pull_request: - paths: - - "magnus/**" branches: - "main" diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 999a6c2c..155a91ca 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -1,10 +1,9 @@ on: push: - paths: - - "magnus/**" branches: - "main" - "rc" + - "release" jobs: PRCheck: @@ -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 @@ -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 @@ -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'