Merge pull request #42 from evduanG/V2-eviatar-dev #1
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: Check Project Version Change | |
on: | |
push: | |
branches: | |
- '*' | |
jobs: | |
check-project-version-change: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Check Project Version Change | |
run: | | |
if git diff --name-only HEAD^ HEAD | grep "ProjectSettings/ProjectVersion.txt"; then | |
echo "Project version file has changed" | |
exit 1 # fail the workflow | |
else | |
echo "No changes in project version file" | |
fi |