Loading pipelines/project-automation.yml +13 −0 Original line number Diff line number Diff line Loading @@ -13,3 +13,16 @@ tbump: - .release:rules needs: - find-next-release tbump:dry-run: stage: test extends: tbump variables: TBUMP_NEXT_VERSION: 99.99.99 needs: [] artifacts: null # Disable so we don't interfere with subsequent jobs rules: - if: $CI_COMMIT_REF_NAME != $CI_DEFAULT_BRANCH exists: - tbump.toml - pyproject.toml project-automation/find-next-release.yml +1 −1 Original line number Diff line number Diff line Loading @@ -11,7 +11,7 @@ find-next-release: script: - !reference [".release:install", script] - wget -O .releaserc https://gitlab.com/just-ci/utils/-/raw/main/semantic-release/find-next-version.json https://gitlab.com/just-ci/utils/-/raw/main/semantic-release/find-next-version.json # https://gitlab.com/just-ci/templates/-/raw/v6.24.3/project-automation/release/find-next-release.json - semantic-release --dry-run --no-ci - echo "TBUMP_NEXT_VERSION=$(cat .VERSION 2>/dev/null || echo "[!] No new release" 1>&2)" > TBUMP_NEXT_VERSION.env Loading project-automation/generic.yaml +3 −1 Original line number Diff line number Diff line Loading @@ -20,7 +20,9 @@ .release:rules: rules: - if: "$CI_COMMIT_REF_PROTECTED && $GL_TOKEN && $CI_COMMIT_TAG == null" - if: "$CI_COMMIT_REF_PROTECTED == 'true' && $GL_TOKEN && $CI_COMMIT_TAG == null" exists: - tbump.toml - pyproject.toml Loading project-automation/release/find-next-release.json 0 → 100644 +21 −0 Original line number Diff line number Diff line { "branches": [ "+([0-9])?(.{+([0-9]),x}).x", "master", "main", "next", "next-major", { "name": "alpha", "channel": "alpha", "prerelease": "alpha" }, { "name": "beta", "channel": "beta", "prerelease": "beta" }, { "name": "rc", "channel": "rc", "prerelease": "rc" } ], "plugins": [ "@semantic-release/commit-analyzer", [ "@semantic-release/exec", { "verifyReleaseCmd": "echo ${nextRelease.version} > .VERSION" } ] ] } project-automation/release/releaserc-default.json 0 → 100644 +26 −0 Original line number Diff line number Diff line { "branches": [ "+([0-9])?(.{+([0-9]),x}).x", "master", "main", "next", "next-major", { "name": "alpha", "channel": "alpha", "prerelease": "alpha" }, { "name": "beta", "channel": "beta", "prerelease": "beta" }, { "name": "rc", "channel": "rc", "prerelease": "rc" } ], "plugins": [ "@semantic-release/commit-analyzer", "@semantic-release/release-notes-generator", "@semantic-release/changelog", [ "@semantic-release/git", { "assets": [], "message": "chore(release): ${nextRelease.version}\n\n${nextRelease.notes}", "successComment": false } ], "@semantic-release/gitlab" ] } Loading
pipelines/project-automation.yml +13 −0 Original line number Diff line number Diff line Loading @@ -13,3 +13,16 @@ tbump: - .release:rules needs: - find-next-release tbump:dry-run: stage: test extends: tbump variables: TBUMP_NEXT_VERSION: 99.99.99 needs: [] artifacts: null # Disable so we don't interfere with subsequent jobs rules: - if: $CI_COMMIT_REF_NAME != $CI_DEFAULT_BRANCH exists: - tbump.toml - pyproject.toml
project-automation/find-next-release.yml +1 −1 Original line number Diff line number Diff line Loading @@ -11,7 +11,7 @@ find-next-release: script: - !reference [".release:install", script] - wget -O .releaserc https://gitlab.com/just-ci/utils/-/raw/main/semantic-release/find-next-version.json https://gitlab.com/just-ci/utils/-/raw/main/semantic-release/find-next-version.json # https://gitlab.com/just-ci/templates/-/raw/v6.24.3/project-automation/release/find-next-release.json - semantic-release --dry-run --no-ci - echo "TBUMP_NEXT_VERSION=$(cat .VERSION 2>/dev/null || echo "[!] No new release" 1>&2)" > TBUMP_NEXT_VERSION.env Loading
project-automation/generic.yaml +3 −1 Original line number Diff line number Diff line Loading @@ -20,7 +20,9 @@ .release:rules: rules: - if: "$CI_COMMIT_REF_PROTECTED && $GL_TOKEN && $CI_COMMIT_TAG == null" - if: "$CI_COMMIT_REF_PROTECTED == 'true' && $GL_TOKEN && $CI_COMMIT_TAG == null" exists: - tbump.toml - pyproject.toml Loading
project-automation/release/find-next-release.json 0 → 100644 +21 −0 Original line number Diff line number Diff line { "branches": [ "+([0-9])?(.{+([0-9]),x}).x", "master", "main", "next", "next-major", { "name": "alpha", "channel": "alpha", "prerelease": "alpha" }, { "name": "beta", "channel": "beta", "prerelease": "beta" }, { "name": "rc", "channel": "rc", "prerelease": "rc" } ], "plugins": [ "@semantic-release/commit-analyzer", [ "@semantic-release/exec", { "verifyReleaseCmd": "echo ${nextRelease.version} > .VERSION" } ] ] }
project-automation/release/releaserc-default.json 0 → 100644 +26 −0 Original line number Diff line number Diff line { "branches": [ "+([0-9])?(.{+([0-9]),x}).x", "master", "main", "next", "next-major", { "name": "alpha", "channel": "alpha", "prerelease": "alpha" }, { "name": "beta", "channel": "beta", "prerelease": "beta" }, { "name": "rc", "channel": "rc", "prerelease": "rc" } ], "plugins": [ "@semantic-release/commit-analyzer", "@semantic-release/release-notes-generator", "@semantic-release/changelog", [ "@semantic-release/git", { "assets": [], "message": "chore(release): ${nextRelease.version}\n\n${nextRelease.notes}", "successComment": false } ], "@semantic-release/gitlab" ] }