mirror of
https://github.com/meilisearch/MeiliSearch
synced 2025-07-15 13:58:36 +02:00
Replace deprecated set-output in GitHub actions
This patch fixes #3011. This patch fixes the depracation warning regarding the usage of `set-output`. This patch fixes the issues by switching the following format: ``` echo ::set-output name=[name]::[value] ``` into the following format: ``` echo "[name]=[value]" >> ${GITHUB_OUTPUT} ```
This commit is contained in:
parent
c7caadb54e
commit
09e71fdeb6
3 changed files with 10 additions and 9 deletions
5
.github/workflows/milestone-workflow.yml
vendored
5
.github/workflows/milestone-workflow.yml
vendored
|
@ -41,10 +41,11 @@ jobs:
|
|||
echo version: $MILESTONE_VERSION
|
||||
if [[ $MILESTONE_VERSION =~ ^v[0-9]+\.[0-9]+\.0$ ]]; then
|
||||
echo 'This is NOT a patch release'
|
||||
echo ::set-output name=is-patch::false
|
||||
echo "is-patch=false" >> ${GITHUB_OUTPUT}
|
||||
|
||||
elif [[ $MILESTONE_VERSION =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
|
||||
echo 'This is a patch release'
|
||||
echo ::set-output name=is-patch::true
|
||||
echo "is-patch=true" >> ${GITHUB_OUTPUT}
|
||||
else
|
||||
echo "Not a valid format of release, check the Milestone's title."
|
||||
echo 'Should be vX.Y.Z'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue