mirror of
https://github.com/gwdevhub/Daybreak.git
synced 2026-07-21 01:59:49 +00:00
7d78a89d12
* Migrate sln to slnx * Patch pipelines
53 lines
1.2 KiB
YAML
53 lines
1.2 KiB
YAML
name: Daybreak Version Check
|
|
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- master
|
|
paths:
|
|
- "Daybreak/**"
|
|
- "Daybreak.Installer/**"
|
|
|
|
jobs:
|
|
|
|
check_version:
|
|
|
|
strategy:
|
|
matrix:
|
|
targetplatform: [x86]
|
|
|
|
runs-on: windows-latest
|
|
|
|
env:
|
|
Configuration: Release
|
|
Solution_Path: Daybreak.slnx
|
|
Actions_Allow_Unsecure_Commands: true
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Install .NET Core
|
|
uses: actions/setup-dotnet@v4
|
|
with:
|
|
dotnet-version: '9.x'
|
|
|
|
- name: Get Latest Tag
|
|
id: getLatestTag
|
|
uses: WyriHaximus/github-action-get-previous-tag@v1
|
|
|
|
- name: Build Daybreak project
|
|
run: dotnet build Daybreak -c $env:Configuration --property:SolutionDir=$env:GITHUB_WORKSPACE
|
|
|
|
- name: Set version variable
|
|
run: |
|
|
$version = .\Scripts\GetBuildVersion.ps1
|
|
echo "::set-env name=Version::$version"
|
|
|
|
- name: Check version difference
|
|
run: |
|
|
.\Scripts\CompareVersions -currentVersion ${{ env.Version }} -lastVersion ${{ env.LatestReleaseTag }}
|
|
env:
|
|
LatestReleaseTag: ${{ steps.getLatestTag.outputs.tag }} |