8000 Commit the new file (#3521) · MicrosoftDocs/edge-developer@0ef6acc · GitHub
[go: up one dir, main page]

Skip to content

Commit 0ef6acc

Browse files
Commit the new file (#3521)
1 parent 08a6d12 commit 0ef6acc

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

.github/workflows/webplat-relnotes.yaml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)
0