Skip to content

Commit 086dc60

Browse files
committed
ci: preview next version job
1 parent 157f9d1 commit 086dc60

File tree

4 files changed

+39
-0
lines changed

4 files changed

+39
-0
lines changed

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

Whitespace-only changes.

.github/workflows/docker-build.yml

Whitespace-only changes.
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Preview Bump version
2+
3+
on:
4+
push:
5+
branches: ["main"]
6+
pull_request:
7+
branches: ["main"]
8+
9+
jobs:
10+
bump_version:
11+
#if: ${{ !startsWith(github.event.head_commit.message, 'bump:') && github.ref == 'refs/heads/main' }}
12+
runs-on: ubuntu-latest
13+
container:
14+
image: commitizen/commitizen:4.8.3@sha256:08a078c52b368f85f34257a66e10645ee74d8cbe9b471930b80b2b4e95a9bd4a
15+
16+
name: "Bump version and create changelog with commitizen"
17+
steps:
18+
19+
- uses: actions/create-github-app-token@a8d616148505b5069dccd32f177bb87d7f39123b # v2.1.1
20+
id: app-token
21+
with:
22+
app-id: ${{ vars.ELEMENTSINTERACTIVE_BOT_APP_ID }}
23+
private-key: ${{ secrets.ELEMENTSINTERACTIVE_BOT_PRIVATE_KEY }}
24+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
25+
with:
26+
fetch-depth: 0
27+
token: ${{ steps.app-token.outputs.token }}
28+
ref: ${{ github.head_ref }}
29+
30+
# - name: Configure git
31+
# run: |
32+
# git config --global --add safe.directory "*"
33+
# git config user.name "github-actions[bot]"
34+
# git config user.email "github-actions[bot]@users.noreply.github.com"
35+
36+
- id: cz
37+
name: Preview next version
38+
run: |
39+
cz bump --get-next

0 commit comments

Comments
 (0)