diff --git a/.github/workflows/change-prerelease-tag.yml b/.github/workflows/change-prerelease-tag.yml index 30695afd2a5..208f10d0b57 100644 --- a/.github/workflows/change-prerelease-tag.yml +++ b/.github/workflows/change-prerelease-tag.yml @@ -58,14 +58,12 @@ jobs: file: .changeset/pre.json fields: '{"tag": "${{github.event.inputs.tag}}"}' - - uses: stefanzweifel/git-auto-commit-action@v5 - with: - commit_message: Prepare for ${{ github.event.inputs.tag }} release - # must manually set these values since the defaults come from - # the workflow_dispatch event which does not contain the email - # for the user dispatching the event which breaks the CLA check - commit_user_name: github-actions[bot] - commit_user_email: 41898282+github-actions[bot]@users.noreply.github.com - commit_author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> - # Commit these changes to the branch workflow is running against - branch: ${{ github.event.inputs.branch }} + - name: Commit and push changes + env: + TAG: ${{ github.event.inputs.tag }} + run: | + git config user.email "41898282+github-actions[bot]@users.noreply.github.com" + git config user.name "github-actions[bot]" + git add -A + git commit -m "Prepare for "$TAG" release" + git push diff --git a/.github/workflows/exit-prerelease.yml b/.github/workflows/exit-prerelease.yml index df1f5a9fdd0..6ac4e76b1a8 100644 --- a/.github/workflows/exit-prerelease.yml +++ b/.github/workflows/exit-prerelease.yml @@ -50,14 +50,10 @@ jobs: - name: Remove pre.json run: npx rimraf .changeset/pre.json - - uses: stefanzweifel/git-auto-commit-action@v5 - with: - commit_message: Exit prerelease mode - # must manually set these values since the defaults come from - # the workflow_dispatch event which does not contain the email - # for the user dispatching the event which breaks the CLA check - commit_user_name: github-actions[bot] - commit_user_email: 41898282+github-actions[bot]@users.noreply.github.com - commit_author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> - # Commit these changes to the branch workflow is running against - branch: ${{ github.event.inputs.branch }} + - name: Commit and push changes + run: | + git config user.email "41898282+github-actions[bot]@users.noreply.github.com" + git config user.name "github-actions[bot]" + git add -A + git commit -m "Exit prerelease mode" + git push