From 05eaf6e594d2106844797a3ff88787f7752afcc0 Mon Sep 17 00:00:00 2001 From: Dilip Kola Date: Tue, 10 Dec 2024 14:15:45 +0530 Subject: [PATCH] fix: tokens in constants pr workflow --- .github/workflows/raise-pr-for-constants.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/raise-pr-for-constants.yml b/.github/workflows/raise-pr-for-constants.yml index 8b38c44ec..d7e264637 100644 --- a/.github/workflows/raise-pr-for-constants.yml +++ b/.github/workflows/raise-pr-for-constants.yml @@ -25,8 +25,7 @@ jobs: - name: Checkout Destination Repo run: | - DEST_REPO="rudderlabs/rudder-sdk-js" - git clone https://github.com/${DEST_REPO}.git dest-repo || exit 1 + git clone https://github.com/rudderlabs/rudder-sdk-js.git dest-repo || exit 1 cd dest-repo git checkout ${{ env.BRANCH_NAME }} || git checkout -b ${{ env.BRANCH_NAME }} @@ -43,14 +42,13 @@ jobs: - name: Commit and Push Changes if: steps.compare_files.outputs.pr_required == 'true' - env: - GH_TOKEN: ${{ secrets.PAT }} run: | cd dest-repo cp "../generated/Destinations.ts" "packages/analytics-js-common/src/constants/integrations/Destinations.ts" git add packages/analytics-js-common/src/constants/integrations/Destinations.ts git config --global user.name "GitHub Actions" git config --global user.email "noreply@github.com" + git config --global url."https://${{ secrets.PAT }}@github.com/".insteadOf "https://github.com/" git commit -m "fix: update destinations.ts" git push origin ${{ env.BRANCH_NAME }}