Update method for fetching AVITI stats in the BCL conversion step #149
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 VERSIONLOG.MD has been updated | |
on: [pull_request] | |
jobs: | |
check-versionlog: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout PR | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 # Fetch all history for all branches and tags | |
- name: Check for VERSIONLOG.MD changes | |
id: versionlog_check | |
run: | | |
FILE_CHANGED=$(git diff --name-only ${{ github.event.pull_request.base.sha }} HEAD | grep 'VERSIONLOG.md' || true) | |
if [ -n "$FILE_CHANGED" ]; then | |
echo "VERSIONLOG.MD has been changed." | |
else | |
echo "VERSIONLOG.MD has NOT been changed." | |
exit 1 # Fail the workflow if no changes in VERSIONLOG.MD | |
fi |