зеркало из
1
0
Форкнуть 0

[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:
Donald McEachern 2024-04-22 12:06:28 -07:00 коммит произвёл GitHub
Родитель 730d58a6d8
Коммит b3b5442455
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: B5690EEEBB952194
2 изменённых файлов: 21 добавлений и 2 удалений

14
.github/workflows/create-release-branch.yml поставляемый
Просмотреть файл

@ -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"
}