Skip to content

Commit

Permalink
fix: tokens in constants pr workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
koladilip committed Dec 10, 2024
1 parent 676e0b0 commit 05eaf6e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/raise-pr-for-constants.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -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 "[email protected]"
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 }}
Expand Down

0 comments on commit 05eaf6e

Please sign in to comment.