Skip to content

Commit e3bafab

Browse files
authored
Merge pull request #3643 from IgniteUI/sstoychev/finalize-yml
fix(*): trying suggestion with pat
2 parents 6066063 + 39b7d7b commit e3bafab

File tree

4 files changed

+14
-5
lines changed

4 files changed

+14
-5
lines changed

azure-devops/app-cd.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ pool:
1313
vmImage: ubuntu-latest
1414

1515
variables:
16-
githubToken: <value> # Add a GitHub token in Libraries
16+
- group: live-editing-samples-pat
1717
ReplacementText: '@infragistics/igniteui-angular-extras'
1818

1919
steps:
@@ -79,6 +79,7 @@ steps:
7979
- template: templates/cd-template.yml
8080
parameters:
8181
customCommand: run generate-live-editing
82+
gitHubToken: $(GITHUB_TOKEN)
8283
workingDir: $(Build.SourcesDirectory)
8384
submoduleDir: angular-demos
8485
baseHref: \/angular-demos\/

azure-devops/app-crm-cd-yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ pool:
1313
vmImage: ubuntu-latest
1414

1515
variables:
16-
githubToken: <value> # Add a GitHub token in Libraries
16+
- group: live-editing-samples-pat
1717
ReplacementText: '@infragistics/igniteui-angular-extras'
1818

1919
steps:
@@ -79,6 +79,7 @@ steps:
7979
- template: templates/cd-template.yml
8080
parameters:
8181
customCommand: run generate-live-editing:app-crm
82+
gitHubToken: $(GITHUB_TOKEN)
8283
workingDir: $(Build.SourcesDirectory)
8384
submoduleDir: angular-demos-crm
8485
baseHref: \/angular-demos-grid-crm\/

azure-devops/app-lob-cd.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ pool:
1313
vmImage: ubuntu-latest
1414

1515
variables:
16-
githubToken: <value> # Add a GitHub token in Libraries
16+
- group: live-editing-samples-pat
1717
ReplacementText: '@infragistics/igniteui-angular-extras'
1818

1919
steps:
@@ -79,6 +79,7 @@ steps:
7979
- template: templates/cd-template.yml
8080
parameters:
8181
customCommand: run generate-live-editing:app-lob
82+
gitHubToken: $(GITHUB_TOKEN)
8283
workingDir: $(Build.SourcesDirectory)
8384
submoduleDir: angular-demos-lob
8485
baseHref: \/angular-demos-lob\/

azure-devops/templates/cd-template.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
parameters:
33
- name: customCommand
44
type: string
5+
- name: gitHubToken
6+
type: string
57
- name: workingDir
68
type: string
79
- name: submoduleDir
@@ -183,10 +185,14 @@ steps:
183185
condition: and(eq(variables['changesDetected'], true), eq(${{ parameters.repositoryfy }}, 'true'))
184186
inputs:
185187
script: |
186-
git config user.name "tfsbuild"
187-
git config user.email "tfsbuild@infragistics.com"
188+
git config --global user.name "tfsbuild"
189+
git config --global user.email "tfsbuild@infragistics.com"
190+
git config --global credential.helper store
191+
echo "https://x-access-token:$(GITHUB_TOKEN)@github.com" > ~/.git-credentials
188192
git add .
189193
git commit -m "Automated repository update"
194+
env:
195+
GITHUB_TOKEN: ${{ parameters.gitHubToken }}
190196
workingDirectory: ${{ parameters.workingDir }}/igniteui-live-editing-samples/${{ parameters.submoduleDir }}
191197

192198
- task: CmdLine@2

0 commit comments

Comments
 (0)