Skip to content

Commit acdf52e

Browse files
committed
Use outputs instead of ENV
1 parent 7a04149 commit acdf52e

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/publish.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ jobs:
2020

2121
- name: Extract version
2222
id: extract_version
23-
run: echo "VERSION=$(grep 'version =' pyproject.toml | sed -e 's/version = "\(.*\)"/\1/')-$(echo $GITHUB_SHA | cut -c1-7)" >> $GITHUB_ENV
23+
run: |
24+
VERSION=$(grep 'version =' pyproject.toml | sed -e 's/version = "\(.*\)"/\1/')-$(echo $GITHUB_SHA | cut -c1-7)
25+
echo "VERSION=$VERSION" >> "$GITHUB_OUTPUT"
2426
2527
- name: Log in to GitHub Container Registry
2628
uses: docker/login-action@v3
@@ -36,4 +38,4 @@ jobs:
3638
push: true
3739
tags: |
3840
ghcr.io/sysdiglabs/sysdig-mcp-server:latest
39-
ghcr.io/sysdiglabs/sysdig-mcp-server:v${{ env.VERSION }}
41+
ghcr.io/sysdiglabs/sysdig-mcp-server:v${{ steps.extract_version.outputs.VERSION }}

0 commit comments

Comments
 (0)