Skip to content

don't recurse into the publish directory #6

don't recurse into the publish directory

don't recurse into the publish directory #6

Workflow file for this run

name: 'Update Version'
on:
push:
tags: [ '[0-9]+.[0-9]+.[0-9]+-?**' ]
workflow_dispatch:
defaults:
run:
shell: |
pwsh -noninteractive -command "try {{ $ErrorActionPreference='Stop'; . '{0}' }} catch {{ Write-Error ""FAILED: $_""; throw; }} if ((Test-Path -LiteralPath variable:\LASTEXITCODE)) {{ exit $LASTEXITCODE }}"
jobs:
# This job is required because C# is assholes and dotnet publish refuses to use the version number set by the SetVersion.ps1 script.
update-version-number:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
with:
ref: 'main'
fetch-depth: 0
- name: Update .csproj Version Numbers
run: .\SetVersion.ps1
- name: Push Changes
run: |
git config user.name github-actions
git config user.email github-actions@github.com
git add -A
git commit -m "Update .csproj Version Numbers"
git push origin
# HEAD:github-actions