mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-25 19:45:05 +08: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
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'
|
||||
|
6
.github/workflows/publish-binaries.yml
vendored
6
.github/workflows/publish-binaries.yml
vendored
@ -23,9 +23,9 @@ jobs:
|
||||
escaped_tag=$(printf "%q" ${{ github.ref_name }})
|
||||
|
||||
if [[ $escaped_tag =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
|
||||
echo ::set-output name=stable::true
|
||||
echo "stable=true" >> ${GITHUB_OUTPUT}
|
||||
else
|
||||
echo ::set-output name=stable::false
|
||||
echo "stable=false" >> ${GITHUB_OUTPUT}
|
||||
fi
|
||||
- name: Check release validity
|
||||
if: github.event_name != 'schedule' && steps.check-tag-format.outputs.stable == 'true'
|
||||
@ -66,7 +66,7 @@ jobs:
|
||||
file: target/release/${{ matrix.artifact_name }}
|
||||
asset_name: ${{ matrix.asset_name }}
|
||||
tag: ${{ github.ref }}
|
||||
|
||||
|
||||
publish-macos-apple-silicon:
|
||||
name: Publish binary for macOS silicon
|
||||
runs-on: ${{ matrix.os }}
|
||||
|
8
.github/workflows/publish-docker-images.yml
vendored
8
.github/workflows/publish-docker-images.yml
vendored
@ -1,10 +1,10 @@
|
||||
---
|
||||
on:
|
||||
schedule:
|
||||
- cron: '0 4 * * *' # Every day at 4:00am
|
||||
- cron: "0 4 * * *" # Every day at 4:00am
|
||||
push:
|
||||
tags:
|
||||
- '*'
|
||||
- "*"
|
||||
|
||||
name: Publish tagged images to Docker Hub
|
||||
|
||||
@ -25,9 +25,9 @@ jobs:
|
||||
escaped_tag=$(printf "%q" ${{ github.ref_name }})
|
||||
|
||||
if [[ $escaped_tag =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
|
||||
echo ::set-output name=stable::true
|
||||
echo "stable=true" >> ${GITHUB_OUTPUT}
|
||||
else
|
||||
echo ::set-output name=stable::false
|
||||
echo "stable=false" >> ${GITHUB_OUTPUT}
|
||||
fi
|
||||
|
||||
# Check only the validity of the tag for official releases (not for pre-releases or other tags)
|
||||
|
Loading…
Reference in New Issue
Block a user