Skip to content

Commit

Permalink
ci: fix README change detection (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
wpbonelli authored Apr 12, 2023
1 parent 5653649 commit 9071105
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,11 @@ jobs:
cat Header.md ./release_build/code.md > BodyFile.md
cat BodyFile.md
# - name: Setup tmate session
# uses: mxschmitt/action-tmate@v3
# with:
# limit-access-to-actor: true

- name: Update readme
id: update-readme
run: |
Expand All @@ -149,8 +154,7 @@ jobs:
python scripts/update_readme.py
# determine whether changes need to be committed
readme_changed=$(git diff --exit-code README.md)
if [ "$readme_changed" -eq 1 ]; then
if [[ `git status --porcelain --untracked-files=no` ]]; then
echo "Changes to README.md:"
git diff README.md
changes="true"
Expand Down

0 comments on commit 9071105

Please sign in to comment.