diff --git a/.github/workflows/createExampleRepos.yml b/.github/workflows/createExampleRepos.yml index e5a40a2..a30fbbb 100644 --- a/.github/workflows/createExampleRepos.yml +++ b/.github/workflows/createExampleRepos.yml @@ -11,10 +11,16 @@ jobs: steps: - uses: actions/checkout@v3 + - name: Configure contributor + run: | + git config --global user.email "github-actions@github.com" + git config --global user.name "GitHub Actions" + - name: Run script shell: pwsh env: AZURE_DEVOPS_CREATE_PAT: ${{ secrets.AZURE_DEVOPS_EXT_PAT }} TEMP: ${{ runner.temp }} + PROVISIONCOUNT: 1 run: | - .\make.ps1 -command "provision" -provisionCount 5 + .\make.ps1 -command "provision" -provisionCount $env:PROVISIONCOUNT diff --git a/make.ps1 b/make.ps1 index cb395b3..9395a3e 100644 --- a/make.ps1 +++ b/make.ps1 @@ -130,9 +130,10 @@ function GetSourceRepo { # overwrite the file in the .azure-devops/build.yml with the content from /development/WebGoat-GHAzDo-starter-pipeline.yml file Copy-Item -Path $PSScriptRoot\development\WebGoat-GHAzDo-starter-pipeline.yml -Destination $tempFolder\$subfolder\build.yml -Force - git status - git add .\.azure-devops\ - git add .\.azure-devops\build.yml + #git status + + git add ./.azure-devops/ + git add ./.azure-devops/build.yml git commit -m "Updated build.yml" } }