Skip to content

Update versions

Update versions #9

name: Update versions
on:
workflow_dispatch:
inputs:
version:
description: "New version for all projects"
required: true
type: string
jobs:
update-versions:
runs-on: ubuntu-latest
name: Update versions
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Update project versions
id: update
uses: vers-one/[email protected]
with:
file: |
"Source/VersOne.Epub/VersOne.Epub.csproj", "Source/VersOne.Epub/VersOne.Epub.nuspec", "Source/VersOne.Epub.Test/VersOne.Epub.Test.csproj", "Source/VersOne.Epub.ConsoleDemo/VersOne.Epub.ConsoleDemo.csproj", "Source/VersOne.Epub.WpfDemo/Properties/AssemblyInfo.cs"
version: ${{ github.event.inputs.version }}
- run: |
git config user.name "vers-one"
git config user.email "[email protected]"
git add .
git commit -m "Update project versions to ${{ steps.update.outputs.newVersion }}"
git tag v${{ steps.update.outputs.newVersion }}
git push --atomic origin master v${{ steps.update.outputs.newVersion }}