Skip to content

Commit

Permalink
Merge pull request #222 from jhudsl/workflow-fix
Browse files Browse the repository at this point in the history
Echo no changes if no changes to prevent error
  • Loading branch information
avahoffman authored Aug 9, 2024
2 parents 3da6caf + 86582e8 commit b2164bc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ jobs:
run: |
bash scripts/AnVIL_Feedback_Script.sh
git add _output.yml
git commit -m 'Set up feedback link'
git commit -m 'Set up feedback link' || echo "No changes to commit"
# Run bookdown rendering
- name: Run bookdown render
Expand All @@ -170,7 +170,7 @@ jobs:
mv tmp1/_bookdown.yml tmp1/_output.yml .
rm -r tmp1
git add student-guide/*
git commit -m 'Create student guide'
git commit -m 'Create student guide' || echo "No changes to commit"
# Run TOC-less version
# Rendered content for Leanpub and Coursera is very similar.
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/render-all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ jobs:
run: |
bash scripts/AnVIL_Feedback_Script.sh
git add _output.yml
git commit -m 'Set up feedback link'
git commit -m 'Set up feedback link' || echo "No changes to commit"
# Run bookdown rendering
- name: Run bookdown render
Expand All @@ -90,7 +90,7 @@ jobs:
mv tmp1/_bookdown.yml tmp1/_output.yml .
rm -r tmp1
git add student-guide/*
git commit -m 'Create student guide'
git commit -m 'Create student guide' || echo "No changes to commit"
# This checks on the steps before it and makes sure that they completed.
# If the renders didn't complete we don't want to commit the file changes
Expand Down

0 comments on commit b2164bc

Please sign in to comment.