mirror of
https://github.com/dcronqvist/DotTiled.git
synced 2025-05-08 18:46:04 +03:00
updated workflow to really check version
This commit is contained in:
parent
622c790406
commit
794cbb223d
1 changed files with 8 additions and 7 deletions
13
.github/workflows/master-pr.yml
vendored
13
.github/workflows/master-pr.yml
vendored
|
@ -13,18 +13,19 @@ jobs:
|
|||
- name: Get version from PR branch
|
||||
id: pr_version
|
||||
run: |
|
||||
PR_VERSION=$(grep '<Version>' **/*.csproj | sed -E 's/.*<Version>(.*)<\/Version>.*/\1/')
|
||||
PR_VERSION=$(find . -name '*.csproj' -exec grep '<Version>' {} \; | sed -E 's/.*<Version>(.*)<\/Version>.*/\1/')
|
||||
echo "PR_VERSION=$PR_VERSION" >> $GITHUB_ENV
|
||||
|
||||
- name: Checkout master branch
|
||||
run: |
|
||||
git fetch origin master
|
||||
git checkout origin/master
|
||||
- name: Checkout master branch to separate directory
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
ref: master
|
||||
path: master_branch
|
||||
|
||||
- name: Get version from master branch
|
||||
id: master_version
|
||||
run: |
|
||||
MASTER_VERSION=$(grep '<Version>' **/*.csproj | sed -E 's/.*<Version>(.*)<\/Version>.*/\1/')
|
||||
MASTER_VERSION=$(find master_branch -name '*.csproj' -exec grep '<Version>' {} \; | sed -E 's/.*<Version>(.*)<\/Version>.*/\1/')
|
||||
echo "MASTER_VERSION=$MASTER_VERSION" >> $GITHUB_ENV
|
||||
|
||||
- name: Compare versions
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue