mirror of
https://github.com/Orange-OpenSource/hurl.git
synced 2024-09-21 10:49:45 +03:00
Add labels to update_crates.yml action
This commit is contained in:
parent
0bdd778553
commit
a505fc672c
11
.github/workflows/update-crates.yml
vendored
11
.github/workflows/update-crates.yml
vendored
@ -105,8 +105,15 @@ jobs:
|
||||
GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }}
|
||||
gh pr comment "${NEW_PR_NUMBER}" --body "${pr_comment}" && gh_exit_code=0 || gh_exit_code=$?
|
||||
if [ ${gh_exit_code} -eq 0 ] ; then
|
||||
echo " - ✅ Comment updates list to pull request succeeds."
|
||||
echo " - ✅ Comment updates list to pull request n° ${NEW_PR_NUMBER} succeeds."
|
||||
else
|
||||
echo " - ❌ A problem occurs when attempting to create updates list comment in new pull request n°${NEW_PR_NUMBER}."
|
||||
echo " - ❌ A problem occurs when attempting to create updates list comment into new pull request n°${NEW_PR_NUMBER}."
|
||||
exit 1
|
||||
fi
|
||||
gh pr edit "${NEW_PR_NUMBER}" --add-label "bot,dependencies" && gh_exit_code=0 || gh_exit_code=$?
|
||||
if [ ${gh_exit_code} -eq 0 ] ; then
|
||||
echo " - ✅ Adding Label to pull request n° ${NEW_PR_NUMBER} succeeds."
|
||||
else
|
||||
echo " - ❌ A problem occurs when attempting to add labels into new pull request n°${NEW_PR_NUMBER}."
|
||||
exit 1
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user