Skip to content

Commit

Permalink
touchups to work with GHA
Browse files Browse the repository at this point in the history
  • Loading branch information
rajbos committed Oct 21, 2023
1 parent e828c59 commit 97ddd77
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/createExampleRepos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
7 changes: 4 additions & 3 deletions make.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
Expand Down

0 comments on commit 97ddd77

Please sign in to comment.