Events notifications #198
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Daybreak Version Check | |
on: | |
pull_request: | |
branches: | |
- master | |
paths: | |
- "Daybreak/**" | |
- "Daybreak.Installer/**" | |
jobs: | |
check_version: | |
strategy: | |
matrix: | |
targetplatform: [x64] | |
runs-on: windows-latest | |
env: | |
Configuration: Release | |
Solution_Path: Daybreak.sln | |
Actions_Allow_Unsecure_Commands: true | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- 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 | |
- 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 }} |