mirror of
https://github.com/qdrant/qdrant.git
synced 2026-08-04 09:01:00 -05:00
Replaced ::set-output(deprecated) with (#6641)
Co-authored-by: Jayant <jayant@Jayants-MacBook-Air.local>
This commit is contained in:
12
.github/workflows/docker-image.yml
vendored
12
.github/workflows/docker-image.yml
vendored
@@ -16,14 +16,14 @@ jobs:
|
||||
- uses: Swatinem/rust-cache@v2
|
||||
- name: Get current tag
|
||||
id: vars
|
||||
run: echo ::set-output name=tag::${GITHUB_REF#refs/*/}
|
||||
run: echo "tag=${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT
|
||||
- name: Get minor and major tags
|
||||
id: version
|
||||
run: |
|
||||
MAJOR_VERSION=$(echo "${{ steps.vars.outputs.tag }}" | cut -d '.' -f 1)
|
||||
MINOR_VERSION=$(echo "${{ steps.vars.outputs.tag }}" | cut -d '.' -f 1-2)
|
||||
echo ::set-output name=major_version::${MAJOR_VERSION}
|
||||
echo ::set-output name=minor_version::${MINOR_VERSION}
|
||||
echo "major_version=${MAJOR_VERSION}" >> $GITHUB_OUTPUT
|
||||
echo "minor_version=${MINOR_VERSION}" >> $GITHUB_OUTPUT
|
||||
- name: Build the Docker image
|
||||
env:
|
||||
RELEASE_VERSION: ${{ steps.vars.outputs.tag }}
|
||||
@@ -73,14 +73,14 @@ jobs:
|
||||
- uses: Swatinem/rust-cache@v2
|
||||
- name: Get current tag
|
||||
id: vars
|
||||
run: echo ::set-output name=tag::${GITHUB_REF#refs/*/}
|
||||
run: echo "tag=${GITHUB_REF#refs/*/}" >> $GITHUB_OUTPUT
|
||||
- name: Get minor and major tags
|
||||
id: version
|
||||
run: |
|
||||
MAJOR_VERSION=$(echo "${{ steps.vars.outputs.tag }}" | cut -d '.' -f 1)
|
||||
MINOR_VERSION=$(echo "${{ steps.vars.outputs.tag }}" | cut -d '.' -f 1-2)
|
||||
echo ::set-output name=major_version::${MAJOR_VERSION}
|
||||
echo ::set-output name=minor_version::${MINOR_VERSION}
|
||||
echo "major_version=${MAJOR_VERSION}" >> $GITHUB_OUTPUT
|
||||
echo "minor_version=${MINOR_VERSION}" >> $GITHUB_OUTPUT
|
||||
- name: Build the Docker image
|
||||
env:
|
||||
RELEASE_VERSION: ${{ steps.vars.outputs.tag }}
|
||||
|
||||
Reference in New Issue
Block a user