From e62bc11358a6ba5eafac248e84201e361068bdc6 Mon Sep 17 00:00:00 2001 From: Sebastian Silbermann Date: Thu, 23 May 2024 17:33:37 +0200 Subject: [PATCH] Check access token early during release (#66133) --- .github/workflows/trigger_release.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/trigger_release.yml b/.github/workflows/trigger_release.yml index 8fe7b2d7f9b87..a1ddcffddf658 100644 --- a/.github/workflows/trigger_release.yml +++ b/.github/workflows/trigger_release.yml @@ -54,6 +54,13 @@ jobs: - name: Clone Next.js repository run: git clone https://github.com/vercel/next.js.git --depth=25 --single-branch --branch ${GITHUB_REF_NAME:-canary} . + - name: Check token + run: gh auth status + # For testing purposes. Once we have a succesful run where this step passes, we should error here. + continue-on-error: true + env: + GITHUB_TOKEN: ${{ secrets.RELEASE_BOT_GITHUB_TOKEN }} + - name: Get commit of the latest tag run: echo "LATEST_TAG_COMMIT=$(git rev-list -n 1 $(git describe --tags --abbrev=0))" >> $GITHUB_ENV