From b830b51b7ffdb8f83e6d5dc9b08d35f9e895072b Mon Sep 17 00:00:00 2001 From: unidevel Date: Mon, 27 Jan 2025 16:27:57 +0000 Subject: [PATCH 1/3] Update gitconfig in the presto stable release pipeline --- .github/workflows/presto-stable-release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/presto-stable-release.yml b/.github/workflows/presto-stable-release.yml index 8eb229d333de8..1e44e3494a612 100644 --- a/.github/workflows/presto-stable-release.yml +++ b/.github/workflows/presto-stable-release.yml @@ -37,8 +37,8 @@ jobs: - name: Configure git run: | git config --global --add safe.directory ${{github.workspace}} - git config --global user.email "oss-release-bot@prestodb.io" - git config --global user.name "oss-release-bot" + git config --global user.email "ci@lists.prestodb.io" + git config --global user.name "prestodb-ci" git config pull.rebase false - name: Set maven version From b1d97e847094027a2783c92d227aafb371a67ad4 Mon Sep 17 00:00:00 2001 From: unidevel Date: Tue, 28 Jan 2025 07:09:43 +0000 Subject: [PATCH 2/3] Add environment for the presto stable release action --- .github/workflows/presto-stable-release.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/presto-stable-release.yml b/.github/workflows/presto-stable-release.yml index 1e44e3494a612..25f0071ebb058 100644 --- a/.github/workflows/presto-stable-release.yml +++ b/.github/workflows/presto-stable-release.yml @@ -7,6 +7,7 @@ jobs: presto-release: name: Presto Stable Release Workflow runs-on: ubuntu-latest + environment: release permissions: contents: write From 8a79a2818e557b3f09841934598ec1ae16c28bd8 Mon Sep 17 00:00:00 2001 From: unidevel Date: Tue, 28 Jan 2025 09:46:36 +0000 Subject: [PATCH 3/3] Remove actor checking since the action environment requires approval to run --- .github/workflows/presto-stable-release.yml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.github/workflows/presto-stable-release.yml b/.github/workflows/presto-stable-release.yml index 25f0071ebb058..d5ad83adecc12 100644 --- a/.github/workflows/presto-stable-release.yml +++ b/.github/workflows/presto-stable-release.yml @@ -14,10 +14,6 @@ jobs: packages: write steps: - - name: Check actor - if: ${{ github.actor != 'prestodb-ci' }} - run: echo "Unauthorized actor. Please login with prestodb-ci to run this action." && exit 1 - - name: Check branch if: ${{ github.ref != 'refs/heads/master' }} run: echo "Invalid branch. This action can only be run on the master branch." && exit 1