Skip to content

ci(actions): bump actions/checkout from 4.1.4 to 4.1.5 #12

ci(actions): bump actions/checkout from 4.1.4 to 4.1.5

ci(actions): bump actions/checkout from 4.1.4 to 4.1.5 #12

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@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5
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