From f744a08569da0b1fedeb6af7d13358b2a91281f9 Mon Sep 17 00:00:00 2001 From: Arthur Deierlein Date: Tue, 20 Feb 2024 13:10:25 +0100 Subject: [PATCH] fix(ci): use adfinis bot for release commits --- .github/workflows/release.yaml | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 200325df..00b4328b 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -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 "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