-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #21 from abachma2/tests
- Loading branch information
Showing
9 changed files
with
62 additions
and
141 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
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 | ||
container: | ||
image: alpine:3.14 | ||
|
||
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 | ||
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
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
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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