From bb2343aba428b5aeba93cac621c7d6624017733a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hu=C3=A1ng=20J=C3=B9nli=C3=A0ng?= Date: Mon, 21 Dec 2020 17:06:15 -0500 Subject: [PATCH] fix: updater does not work on main branch (#12537) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Nicolò Ribaudo Co-authored-by: Nicolò Ribaudo --- .github/workflows/update-parser-tests.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/update-parser-tests.yml b/.github/workflows/update-parser-tests.yml index 7d1aad3f73..c225b4fd93 100644 --- a/.github/workflows/update-parser-tests.yml +++ b/.github/workflows/update-parser-tests.yml @@ -47,7 +47,7 @@ jobs: - name: Commit changes run: | git config user.name "Babel Bot" - git config user.email "Babel Bot " + git config user.email "babel-bot@users.noreply.github.com" git checkout -b update-test262-parser git commit -am "chore: update test262 to ${{ steps.test262.outputs.sha1 }}" git push --force origin update-test262-parser @@ -56,7 +56,7 @@ jobs: with: github-token: ${{ secrets.BOT_TOKEN }} script: | - const base = process.env.GITHUB_REF.replace("/ref/heads/", ""); + const base = process.env.GITHUB_REF.replace("refs/heads/", ""); const { data: prs } = await github.pulls.list({ owner: context.repo.owner, repo: context.repo.repo,