File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -34,13 +34,15 @@ jobs:
3434
3535 - name : Commit changes
3636 run : |
37- if ! git diff --quiet; then
38- git config --local user.email "${{ github.actor }}@users.noreply.github.com"
39- git config --local user.name "${{ github.actor }}"
40- git checkout -b web-platform-release-notes
41- git add .
42- git commit -m "New beta web platform release notes"
43- git push origin web-platform-release-notes
37+ files=$(git ls-files --others --exclude-standard)
38+ if [ -n "$files" ]; then
39+ echo "Committing the new release notes file."
40+ git config --local user.email "${{ github.actor }}@users.noreply.github.com"
41+ git config --local user.name "${{ github.actor }}"
42+ git checkout -b web-platform-release-notes
43+ git add .
44+ git commit -m "New beta web platform release notes"
45+ git push origin web-platform-release-notes
4446 else
45- echo "No changes to commit ."
47+ echo "No new files to add ."
4648 fi
You can’t perform that action at this time.
0 commit comments