Skip to content

Commit c59b435

Browse files
authored
ci: fix attribution step in release candidate action (#8187)
There may not always be a change to the license file
1 parent 4f90bc6 commit c59b435

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/setup-release-candidate.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ jobs:
4949
5050
# Add generated license files
5151
git add LICENSE-THIRD-PARTY
52-
git commit -m "Update third-party license attribution for $BRANCH_NAME"
52+
# If there are no changes, then we don't need a new attribution commit
53+
git commit -m "Update third-party license attribution for $BRANCH_NAME" || true
5354
5455
# Push RC branch
5556
git push origin $BRANCH_NAME

0 commit comments

Comments
 (0)