Skip to content

Commit

Permalink
azure submodule
Browse files Browse the repository at this point in the history
  • Loading branch information
saikrishna321 committed Feb 4, 2024
1 parent 5465347 commit d1f0076
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,16 @@ trigger:

jobs:
- job: UnitTest
env:
CI_PAT: $(PAT_ENV_VARIABLE)

pool:
vmImage: 'macOS-latest'

steps:
- task: [email protected]
inputs:
versionSpec: '20.x'
- script: |
git config --file .gitmodules --get-regexp url | while read url; do
git config --file=.gitmodules $(echo "$url" | sed -E "s/[email protected]:|https:\/\/github.com\//https:\/\/${{ secrets.CI_PAT }}:${{ secrets.CI_PAT }}@github.com\//")
git config --file=.gitmodules $(echo "$url" | sed -E "s/[email protected]:|https:\/\/github.com\//https:\/\/${{ secrets.PAT_ENV_VARIABLE }}:${{ secrets.PAT_ENV_VARIABLE }}@github.com\//")
done
git submodule sync
git submodule update --init --recursive
Expand Down

0 comments on commit d1f0076

Please sign in to comment.