File tree Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -34,13 +34,15 @@ jobs:
34
34
35
35
- name : Commit changes
36
36
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
44
46
else
45
- echo "No changes to commit ."
47
+ echo "No new files to add ."
46
48
fi
You can’t perform that action at this time.
0 commit comments