From ec3e3a49dbbcadac291d0650ba67c3fc45b8033d Mon Sep 17 00:00:00 2001 From: Edwin Date: Tue, 8 Aug 2023 17:43:39 +0530 Subject: [PATCH] fix: update AutoRelease action with bot user account details to bypass branch protection rules --- .github/workflows/release_tao_extension.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release_tao_extension.yml b/.github/workflows/release_tao_extension.yml index 8ffba5e..2c87ab4 100644 --- a/.github/workflows/release_tao_extension.yml +++ b/.github/workflows/release_tao_extension.yml @@ -15,9 +15,18 @@ jobs: steps: - name: Checkout uses: actions/checkout@v2 + with: + token: ${{ secrets.SEMVER_GH_TOKEN }} #bypass branch protection rule + + - name: Configure git user + #configuring git for runner + run: | + git config --global user.name "oat-github-bot" + git config --global user.email "oat-github-bot@taotesting.com" + - name: Release uses: oat-sa/extension-release-action@v1 env: - GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} + GITHUB_TOKEN: ${{ secrets.SEMVER_GH_TOKEN }} with: - github_token: ${{ secrets.GH_TOKEN }} + github_token: ${{ secrets.SEMVER_GH_TOKEN }} \ No newline at end of file