A platform for community discussion. Free, open, simple.
DEV: Perform release workflows as discoursebot (#40339)
David Taylor0729254cd453
diff --git a/.github/actions/setup-release-environment/action.yml b/.github/actions/setup-release-environment/action.ymlindex 7bd6d10e542..ceff3afbbb4 100644--- a/.github/actions/setup-release-environment/action.yml+++ b/.github/actions/setup-release-environment/action.yml@@ -23,8 +23,8 @@ runs:- name: Configure Gitshell: bashrun: |- git config --global user.name "github-actions[bot]"- git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"+ git config --global user.name "discoursebot"+ git config --global user.email "[email protected]"- name: Bundler cacheuses: actions/cache@v4diff --git a/.github/workflows/dependabot-pnpm-dedupe.yml b/.github/workflows/dependabot-pnpm-dedupe.ymlindex 21e4f11f5b5..8f01cba596d 100644--- a/.github/workflows/dependabot-pnpm-dedupe.yml+++ b/.github/workflows/dependabot-pnpm-dedupe.yml@@ -37,8 +37,8 @@ jobs:- name: Git pushrun: |- git config --global user.email "[email protected]"- git config --global user.name "Discourse CI"+ git config --global user.email "[email protected]"+ git config --global user.name "discoursebot"git add pnpm-lock.yamlgit statusgit commit -m "pnpm dedupe [dependabot skip]" && git push || echo "done"diff --git a/.github/workflows/release-branch-handler.yml b/.github/workflows/release-branch-handler.ymlindex a8a14217be2..c1d41394b61 100644--- a/.github/workflows/release-branch-handler.yml+++ b/.github/workflows/release-branch-handler.yml@@ -31,6 +31,7 @@ jobs:with:filter: tree:0fetch-depth: 0+ token: ${{ secrets.GH_PUSH_TOKEN }}- uses: ./.github/actions/setup-release-environmentdiff --git a/.github/workflows/release-handler.yml b/.github/workflows/release-handler.ymlindex 6ed092a9996..26151cc824d 100644--- a/.github/workflows/release-handler.yml+++ b/.github/workflows/release-handler.yml@@ -16,7 +16,6 @@ on:permissions:contents: writepull-requests: write- actions: writejobs:build:@@ -31,19 +30,13 @@ jobs:with:filter: tree:0fetch-depth: 0-+ token: ${{ secrets.GH_PUSH_TOKEN }}+- uses: ./.github/actions/setup-release-environment- name: Maybe cut branch- id: maybe-cut-branchif: github.ref == 'refs/heads/main'run: bin/rake release:maybe_cut_branch[${{ inputs.sha || github.sha }}]- - name: Maybe trigger prepare next version- if: steps.maybe-cut-branch.outputs.new_branch_name- run: gh workflow run release-branch-handler.yml -f branch="${{ steps.maybe-cut-branch.outputs.new_branch_name }}"- env:- GH_TOKEN: ${{ github.token }}-- name: Maybe tag releaserun: bin/rake release:maybe_tag_release[${{ inputs.sha || github.sha }}]