[Bugfix] Fix issue where release aciton fails when no API update (#4498)
* update action to not commit if there are no changes * Change files * Update .github/workflows/create-release-branch.yml Co-authored-by: James Burnside <2684369+JamesBurnside@users.noreply.github.com> Signed-off-by: Donald McEachern <94866715+dmceachernmsft@users.noreply.github.com> --------- Signed-off-by: Donald McEachern <94866715+dmceachernmsft@users.noreply.github.com> Co-authored-by: James Burnside <2684369+JamesBurnside@users.noreply.github.com>
This commit is contained in:
Родитель
730d58a6d8
Коммит
b3b5442455
|
@ -118,8 +118,18 @@ jobs:
|
|||
rush build -t @azure/communication-react
|
||||
id: buildapifiles
|
||||
|
||||
- name: Commit beta release snapshots
|
||||
if: ${{ startsWith(github.event.inputs.branch, 'prerelease-beta' )}}
|
||||
- name: Check for API changes
|
||||
id: API-check
|
||||
run: |
|
||||
if [[ -z $(git status packages/communication-react -s) ]]
|
||||
then
|
||||
echo "hasChanged=false" >> $GITHUB_OUTPUT
|
||||
else
|
||||
echo "hasChanged=true" >> $GITHUB_OUTPUT
|
||||
fi
|
||||
|
||||
- name: Commit API File changes
|
||||
if: ${{ startsWith(github.event.inputs.branch, 'prerelease-beta' ) && steps.API-check.outputs.hasChanged == 'true'}}
|
||||
run: |
|
||||
git add packages/**/*.api.md
|
||||
git commit -m 'Update ${{ matrix.flavor }} API files'
|
||||
|
|
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
"type": "none",
|
||||
"area": "fix",
|
||||
"workstream": "Github actions",
|
||||
"comment": "update action to not commit if there are no changes",
|
||||
"packageName": "@azure/communication-react",
|
||||
"email": "dmceachern@microsoft.com",
|
||||
"dependentChangeType": "none"
|
||||
}
|
Загрузка…
Ссылка в новой задаче