Skip to content

Commit 2d0764e

Browse files
authored
ci: preview next version job (#296)
1 parent 157f9d1 commit 2d0764e

4 files changed

Lines changed: 28 additions & 0 deletions

File tree

.github/workflows/docker-build-no-login.yml

Whitespace-only changes.

.github/workflows/docker-build.yml

Whitespace-only changes.
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Preview Bump version
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
bump_version:
8+
if: ${{ !startsWith(github.event.head_commit.message, 'bump:') && github.ref == 'refs/heads/main' }}
9+
runs-on: ubuntu-latest
10+
container:
11+
image: commitizen/commitizen:4.8.3@sha256:08a078c52b368f85f34257a66e10645ee74d8cbe9b471930b80b2b4e95a9bd4a
12+
13+
name: "Bump version and create changelog with commitizen"
14+
steps:
15+
- uses: actions/create-github-app-token@a8d616148505b5069dccd32f177bb87d7f39123b # v2.1.1
16+
id: app-token
17+
with:
18+
app-id: ${{ vars.ELEMENTSINTERACTIVE_BOT_APP_ID }}
19+
private-key: ${{ secrets.ELEMENTSINTERACTIVE_BOT_PRIVATE_KEY }}
20+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
21+
with:
22+
fetch-depth: 0
23+
token: ${{ steps.app-token.outputs.token }}
24+
ref: ${{ github.head_ref }}
25+
- id: cz
26+
name: Preview next version
27+
run: |
28+
cz bump --get-next

0 commit comments

Comments
 (0)