Skip to content

Commit

Permalink
Replace deprecated GitHub Actions commands (#103)
Browse files Browse the repository at this point in the history
::set-output is replaced with echo to GITHUB_OUTPUT file
  • Loading branch information
yogeshlonkar authored Jun 4, 2024
1 parent 1e8bf01 commit dab5be1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/on-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
out1: ${{ steps.s1.outputs.out1 }}
steps:
- id: s1
run: echo "::set-output name=out1::test-1"
run: echo "out1=test-1" >> $GITHUB_OUTPUT
job2:
name: Job 2
needs: build
Expand All @@ -43,7 +43,7 @@ jobs:
steps:
- run: sleep 60
- id: s2
run: echo "::set-output name=out2::test-2"
run: echo "out2=test-2" >> $GITHUB_OUTPUT
- run: |
echo '{"out2":"test-2"}' > output2.json
- uses: actions/upload-artifact@v4
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/with-wait-for-jobs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
steps:
- run: sleep 10
- id: s1
run: echo "::set-output name=out1::test-1"
run: echo "out1=test-1" >> $GITHUB_OUTPUT
job2:
name: Job 2
needs: start
Expand All @@ -28,7 +28,7 @@ jobs:
steps:
- run: sleep 15
- id: s2
run: echo "::set-output name=out2::test-2"
run: echo "out2=test-2" >> $GITHUB_OUTPUT
job3:
name: Job 3
needs: start
Expand All @@ -38,7 +38,7 @@ jobs:
steps:
- run: sleep 60
- id: s3
run: echo "::set-output name=out3::test-3"
run: echo "out3=test-3" >> $GITHUB_OUTPUT
- run: |
echo '{"out3":"test-3"}' > output3.json
- uses: actions/upload-artifact@v4
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/without-wait-for-jobs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
steps:
- run: sleep 10
- id: s1
run: echo "::set-output name=out1::test-1"
run: echo "out1=test-1" >> $GITHUB_OUTPUT
job2:
name: Job 2
needs: start
Expand All @@ -28,7 +28,7 @@ jobs:
steps:
- run: sleep 15
- id: s2
run: echo "::set-output name=out2::test-2"
run: echo "out2=test-2" >> $GITHUB_OUTPUT
job3:
name: Job 3
needs: start
Expand All @@ -38,7 +38,7 @@ jobs:
steps:
- run: sleep 60
- id: s3
run: echo "::set-output name=out3::test-3"
run: echo "out3=test-3" >> $GITHUB_OUTPUT
job4:
name: Job 4
needs: [job1, job2, job3]
Expand Down

0 comments on commit dab5be1

Please sign in to comment.