Skip to content

Commit f744a08

Browse files
committed
fix(ci): use adfinis bot for release commits
1 parent 508eea1 commit f744a08

File tree

1 file changed

+13
-9
lines changed

1 file changed

+13
-9
lines changed

.github/workflows/release.yaml

+13-9
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ on:
55
push:
66
branches:
77
- main
8+
workflow_call:
9+
secrets:
10+
ADFINISBOT_PAT:
11+
required: true
812

913
jobs:
1014
semrel:
@@ -13,12 +17,14 @@ jobs:
1317
steps:
1418
- name: Checkout Repository
1519
uses: actions/checkout@v4
20+
with:
21+
token: ${{ secrets.ADFINISBOT_PAT }}
1622

1723
- name: Semantic Release
1824
uses: go-semantic-release/action@v1
1925
id: semrel
2026
with:
21-
github-token: ${{ secrets.GITHUB_TOKEN }}
27+
github-token: ${{ secrets.ADFINISBOT_PAT }}
2228
allow-initial-development-versions: true
2329

2430
- run: pipx install poetry
@@ -37,15 +43,13 @@ jobs:
3743
cmd: yq eval '(.appVersion = "${{ steps.semrel.outputs.version }}") | (.version = "{{ steps.semrel.outputs.version }}" )' --inplace ./charts/outdated/Chart.yaml
3844

3945
- name: Release Commit
40-
uses: EndBug/add-and-commit@v9
4146
if: steps.semrel.outputs.version != ''
42-
with:
43-
message: "chore(release): ${{ steps.semrel.outputs.version }} [skip ci]"
44-
default_author: github_actions
45-
add: |
46-
api/pyproject.toml
47-
ember/package.json
48-
charts/outdated/Chart.yaml
47+
run: |
48+
git config user.name "adfinisbot"
49+
git config user.email "[email protected]"
50+
git add api/pyproject.toml ember/package.json charts/outdated/Chart.yaml
51+
git commit -m "chore(release): ${{ steps.semrel.outputs.version }} [skip ci]"
52+
git push
4953
5054
- name: Login to GitHub Container Registry
5155
uses: docker/login-action@v3

0 commit comments

Comments
 (0)