Skip to content

Update testing environment #5

Update testing environment

Update testing environment #5

Workflow file for this run

name: Changelog update check
on:
# allows us to run workflows manually
workflow_dispatch:
pull_request:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
jobs:
check_changelog_update:
runs-on: ubuntu-latest
name: Check if Changelog has been updated
steps:
- name: Install latest git
run: |
apk add --no-cache bash git openssh
git --version
- name: Checkout repository
uses: actions/checkout@v4
- run: |
git config --global --add safe.directory ${GITHUB_WORKSPACE}
cd $GITHUB_WORKSPACE
git remote add arfc https://github.com/arfc/openmcyclus.git
git fetch arfc
change=`git diff arfc/main -- CHANGELOG.rst | wc -l`
git remote remove arfc
if [ $change -eq 0 ]; then
echo "CHANGELOG.rst has not been updated"
exit 1
fi