From 8676b81821f34a88fd0b80e90bf5bac2010d7d44 Mon Sep 17 00:00:00 2001 From: Robbie Davis Date: Fri, 30 Jul 2021 08:56:03 -0400 Subject: [PATCH] Adding version bump workflow --- .github/workflows/version-bump.yml | 41 ++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .github/workflows/version-bump.yml diff --git a/.github/workflows/version-bump.yml b/.github/workflows/version-bump.yml new file mode 100644 index 000000000..94d2bb880 --- /dev/null +++ b/.github/workflows/version-bump.yml @@ -0,0 +1,41 @@ +name: Bump .Net Version + +on: + push: + branches: [ version-bump ] + +jobs: + bump: + name: Version bump + runs-on: windows-latest + steps: + - name: Checkout Repo + uses: actions/checkout@v2 + with: + fetch-depth: 0 + ref: version-bump + + - name: Setup .NET Core + uses: actions/setup-dotnet@v1 + with: + dotnet-version: 5.0.100 + + - name: Install dependencies + run: dotnet restore + + - name: Build + run: dotnet build --configuration Release --no-restore + + - name: Bump versions + uses: SiqiLu/dotnet-bump-version@master + with: + version_files: Kavita.Common/Kavita.Common.csproj + github_token: ${{ secrets.GITHUB_TOKEN }} + + - name: Merge bump branch -> pr branch + uses: devmasx/merge-branch@v1.3.1 + with: + type: now + from_branch: version-bump + target_branch: ${{ github.event.inputs.branch }} + github_token: ${{ secrets.GITHUB_TOKEN }}