Skip to content

Commit

Permalink
regen release notes: don't fail when nothing changed
Browse files Browse the repository at this point in the history
  • Loading branch information
josh-heyer committed Dec 11, 2024
1 parent f2b5d81 commit a3df7b8
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/generate-release-notes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
paths:
- "**/src/*.yml"
- "**/src/*.yaml"
jobs:
jobs:
release-notes:
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -39,8 +39,15 @@ jobs:
for rnmetapath in ./content/**/src/meta.yml; do
./tools/tools/automation/generators/relgen/relgen.js -p ${rnmetapath%/src/meta.yml}
done
- name: check for modified files
id: changes
run: |
cd ./content
echo "files=`git ls-files --other --modified --exclude-standard | wc -l`" >> $GITHUB_OUTPUT
- name: commit modified files
if: steps.changes.outputs.files > 0
run: |
cd ./content
git config user.name "github-actions[bot]"
Expand Down

1 comment on commit a3df7b8

@github-actions
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.