Skip to content

Commit

Permalink
Update add-new-template
Browse files Browse the repository at this point in the history
  • Loading branch information
tshanep authored Jan 22, 2024
1 parent ba67fb9 commit 18bab90
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/add-new-template
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ jobs:
if (Test-Path $folderPath) {
Write-Host "The solution seems to already exist in the Git Repo - this workflow is only for new solutions being added to Git the first time."
echo "FOLDER_EXISTS=true" | Out-File -FilePath $env:GITHUB_ENV -Append
exit 0 # Stops the workflow gracefully
exit 1
} else {
Write-Host "Solution folder does not exist - will proceed to initialize the solution."
echo "FOLDER_EXISTS=false" | Out-File -FilePath $env:GITHUB_ENV -Append
Expand Down Expand Up @@ -206,7 +206,7 @@ jobs:
echo "BRANCH_NAME=$branchName" | Out-File -Append -Encoding utf8 $env:GITHUB_ENV
Write-Host "Working on branch $branchName"
git add .
git commit -m "Added new solution: ${{ github.event.inputs.solution_name }}--${{ steps.date.outputs.branch_datetime }}"
git commit -m "Added new solution: ${{ github.event.inputs.solution_name }}"
git push origin $branchName
gh pr create --title "Add new solution ${{ github.event.inputs.solution_name }}" --body "Added new solution: ${{ github.event.inputs.solution_name }}--${{ steps.date.outputs.branch_datetime }}" --base main --head $branchName
gh pr create --title "Add new solution ${{ github.event.inputs.solution_name }}" --body "Added new solution: ${{ github.event.inputs.solution_name }}" --base main --head $branchName
shell: pwsh

0 comments on commit 18bab90

Please sign in to comment.