This repository has been archived by the owner on Mar 30, 2024. It is now read-only.
Highlight inline variable and commands when relevant #11
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: Version change checker | |
on: | |
pull_request: | |
branches: [main] | |
types: [opened] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 2 | |
- name: Check if VERSION file was modified | |
run: | | |
version_file="mira/VERSION" | |
if git diff --name-only HEAD^1 HEAD | grep -q "$version_file"; then | |
echo "$version_file has been modified in this pull request." | |
else | |
echo "::error::$version_file must be modified in this pull request." | |
exit 1 | |
fi |