From fdb74a07cbbf0c915b7fe6c3d46c6761dbe5f4b7 Mon Sep 17 00:00:00 2001 From: Leaseweb CI Date: Fri, 20 Dec 2024 14:40:36 +0000 Subject: [PATCH] chore: add PAT to github action --- .github/workflows/release.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f621e10..71cc451 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -23,10 +23,13 @@ jobs: # Step 3: Run go mod tidy and commit changes - name: Run go mod tidy + env: + TOKEN: ${{ secrets.PAT_TOKEN }} run: | go mod tidy git config --global user.name "majidkarimizadeh" git config --global user.email "m.karimizadeh@global.leaseweb.com" + git remote set-url origin https://x-access-token:${TOKEN}@github.com/leaseweb/leaseweb-go-sdk.git git diff --quiet || ( git add go.mod go.sum git commit -m "chore: tidy go.mod and go.sum"