-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(ci): use adfinis bot for release commits
- Loading branch information
Showing
1 changed file
with
13 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,10 @@ on: | |
push: | ||
branches: | ||
- main | ||
workflow_call: | ||
secrets: | ||
ADFINISBOT_PAT: | ||
required: true | ||
|
||
jobs: | ||
semrel: | ||
|
@@ -13,12 +17,14 @@ jobs: | |
steps: | ||
- name: Checkout Repository | ||
uses: actions/checkout@v4 | ||
with: | ||
token: ${{ secrets.ADFINISBOT_PAT }} | ||
|
||
- name: Semantic Release | ||
uses: go-semantic-release/action@v1 | ||
id: semrel | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
github-token: ${{ secrets.ADFINISBOT_PAT }} | ||
allow-initial-development-versions: true | ||
|
||
- run: pipx install poetry | ||
|
@@ -37,15 +43,13 @@ jobs: | |
cmd: yq eval '(.appVersion = "${{ steps.semrel.outputs.version }}") | (.version = "{{ steps.semrel.outputs.version }}" )' --inplace ./charts/outdated/Chart.yaml | ||
|
||
- name: Release Commit | ||
uses: EndBug/add-and-commit@v9 | ||
if: steps.semrel.outputs.version != '' | ||
with: | ||
message: "chore(release): ${{ steps.semrel.outputs.version }} [skip ci]" | ||
default_author: github_actions | ||
add: | | ||
api/pyproject.toml | ||
ember/package.json | ||
charts/outdated/Chart.yaml | ||
run: | | ||
git config user.name "adfinisbot" | ||
git config user.email "[email protected]" | ||
git add api/pyproject.toml ember/package.json charts/outdated/Chart.yaml | ||
git commit -m "chore(release): ${{ steps.semrel.outputs.version }} [skip ci]" | ||
git push | ||
- name: Login to GitHub Container Registry | ||
uses: docker/login-action@v3 | ||
|