Skip to content

ci(actions): bump actions/checkout from 4.1.7 to 4.2.0 #23

ci(actions): bump actions/checkout from 4.1.7 to 4.2.0

ci(actions): bump actions/checkout from 4.1.7 to 4.2.0 #23

Workflow file for this run

name: Version Bump Check
on:
pull_request:
types: [opened, reopened, synchronize]
env:
FILE_PATH: '.cz.yaml' # Path to file with version string
VERSION_PATTERN: 'version: [0-9]\+\.[0-9]\+\.[0-9]\+' # Version string regex pattern
jobs:
version-check:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
with:
fetch-depth: 2
- name: Check if Version String is Updated
run: |
if git diff -U0 --diff-filter 'AM' -r HEAD^1 HEAD -- "$FILE_PATH" | grep -q "$VERSION_PATTERN"; then
echo "##### ✅ Version updated in $FILE_PATH" >> "$GITHUB_STEP_SUMMARY"
else
echo "##### ❌ Version NOT updated in $FILE_PATH" >> "$GITHUB_STEP_SUMMARY"
exit 1
fi