Skip to content

Commit

Permalink
fix(ci): use adfinis bot for release commits
Browse files Browse the repository at this point in the history
  • Loading branch information
c0rydoras committed Feb 20, 2024
1 parent 508eea1 commit f744a08
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ on:
push:
branches:
- main
workflow_call:
secrets:
ADFINISBOT_PAT:
required: true

jobs:
semrel:
Expand All @@ -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
Expand All @@ -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 "adfinisbot@users.noreply.github.com"
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
Expand Down

0 comments on commit f744a08

Please sign in to comment.