From 8fb6d3d32621758157feb36d38d0d0cfe1127e3c Mon Sep 17 00:00:00 2001 From: Kasper Peulen Date: Wed, 14 Jun 2023 19:26:30 +0200 Subject: [PATCH] Release: Use release environment in release scripts --- .github/workflows/prepare-patch-release.yml | 2 ++ .github/workflows/prepare-prerelease.yml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/.github/workflows/prepare-patch-release.yml b/.github/workflows/prepare-patch-release.yml index d5a8ca655af6..d1f29d808402 100644 --- a/.github/workflows/prepare-patch-release.yml +++ b/.github/workflows/prepare-patch-release.yml @@ -19,6 +19,7 @@ jobs: prepare-patch-pull-request: name: Prepare patch pull request runs-on: ubuntu-latest + environment: release defaults: run: working-directory: scripts @@ -27,6 +28,7 @@ jobs: uses: actions/checkout@v3 with: ref: main + token: ${{ secrets.GH_TOKEN }} - name: Setup Node.js uses: actions/setup-node@v3 diff --git a/.github/workflows/prepare-prerelease.yml b/.github/workflows/prepare-prerelease.yml index 932c4b31f64f..e1d250575832 100644 --- a/.github/workflows/prepare-prerelease.yml +++ b/.github/workflows/prepare-prerelease.yml @@ -37,6 +37,7 @@ jobs: prepare-prerelease-pull-request: name: Prepare prerelease pull request runs-on: ubuntu-latest + environment: release defaults: run: working-directory: scripts @@ -48,6 +49,7 @@ jobs: # this needs to be set to a high enough number that it will contain the last version tag # as of May 2023, the whole repo had 55K commits fetch-depth: 10000 + token: ${{ secrets.GH_TOKEN }} - name: Setup Node.js uses: actions/setup-node@v3