From 27a03bf7c0f37d13f0aa68fbded5df00f0933022 Mon Sep 17 00:00:00 2001 From: Edwin Date: Tue, 8 Aug 2023 17:38:59 +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 8ffba5e7..2c87ab48 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