Skip to content

Commit 54d7622

Browse files
committed
Replace set-output in Github Actions (close #305)
1 parent e1c74cc commit 54d7622

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/cookieless.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,14 @@ jobs:
2222
id: non-anonymous
2323
run: |
2424
output=$(curl -X POST -i http://0.0.0.0:12345/com.snowplowanalytics.snowplow/tp2 -d '{}' 2>&1 | grep -q 'Set-Cookie')
25-
echo "::set-output name=exit_code::$?"
25+
echo "exit_code=$?" >> $GITHUB_OUTPUT
2626
- name: Test anonymous tracking
2727
id: anonymous
2828
if: ${{ steps.non-anonymous.outputs.exit_code == 0 }}
2929
run: |
3030
set +e
3131
output=$(curl -X POST -i http://0.0.0.0:12345/com.snowplowanalytics.snowplow/tp2 -H 'SP-Anonymous: *' -d '{}' 2>&1 | grep -q 'Set-Cookie')
32-
echo "::set-output name=exit_code::$?"
32+
echo "exit_code=$?" >> $GITHUB_OUTPUT
3333
- name: Report outcome
3434
if: ${{ steps.non-anonymous.outputs.exit_code == 0 && steps.anonymous.outputs.exit_code == 1 }}
3535
run: echo "All tests successful!"

.github/workflows/deploy.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
id: ver
2929
run: |
3030
export PROJECT_VERSION=$(sbt "project core" version -Dsbt.log.noformat=true | perl -ne 'print "$1\n" if /info.*(\d+\.\d+\.\d+[^\r\n]*)/' | tail -n 1 | tr -d '\n')
31-
echo "::set-output name=project_version::$PROJECT_VERSION"
31+
echo "project_version=$PROJECT_VERSION" >> $GITHUB_OUTPUT
3232
- name: Create GitHub release and attach artifacts
3333
uses: softprops/action-gh-release@v1
3434
with:
@@ -80,7 +80,7 @@ jobs:
8080
id: ver
8181
run: |
8282
export PROJECT_VERSION=$(sbt "project core" version -Dsbt.log.noformat=true | perl -ne 'print "$1\n" if /info.*(\d+\.\d+\.\d+[^\r\n]*)/' | tail -n 1 | tr -d '\n')
83-
echo "::set-output name=project_version::$PROJECT_VERSION"
83+
echo "project_version=$PROJECT_VERSION" >> $GITHUB_OUTPUT
8484
8585
- name: Stage the Docker build
8686
run: sbt "project ${{ matrix.platform }}" docker:stage

0 commit comments

Comments
 (0)