diff --git a/.github/workflows/bumpversion.yml b/.github/workflows/bump-version.yml similarity index 100% rename from .github/workflows/bumpversion.yml rename to .github/workflows/bump-version.yml diff --git a/.github/workflows/docker-build-no-login.yml b/.github/workflows/docker-build-no-login.yml deleted file mode 100644 index e69de29b..00000000 diff --git a/.github/workflows/docker-build.yml b/.github/workflows/docker-build.yml deleted file mode 100644 index e69de29b..00000000 diff --git a/.github/workflows/preview-bump-version.yml b/.github/workflows/preview-bump-version.yml new file mode 100644 index 00000000..2d1c9ddf --- /dev/null +++ b/.github/workflows/preview-bump-version.yml @@ -0,0 +1,28 @@ +name: Preview Bump version + +on: + workflow_dispatch: + +jobs: + bump_version: + if: ${{ !startsWith(github.event.head_commit.message, 'bump:') && github.ref == 'refs/heads/main' }} + runs-on: ubuntu-latest + container: + image: commitizen/commitizen:4.8.3@sha256:08a078c52b368f85f34257a66e10645ee74d8cbe9b471930b80b2b4e95a9bd4a + + name: "Bump version and create changelog with commitizen" + steps: + - uses: actions/create-github-app-token@a8d616148505b5069dccd32f177bb87d7f39123b # v2.1.1 + id: app-token + with: + app-id: ${{ vars.ELEMENTSINTERACTIVE_BOT_APP_ID }} + private-key: ${{ secrets.ELEMENTSINTERACTIVE_BOT_PRIVATE_KEY }} + - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 + with: + fetch-depth: 0 + token: ${{ steps.app-token.outputs.token }} + ref: ${{ github.head_ref }} + - id: cz + name: Preview next version + run: | + cz bump --get-next