Skip to content

Commit

Permalink
Replace deprecated set-output calls
Browse files Browse the repository at this point in the history
  • Loading branch information
ErikSchierboom committed Sep 14, 2023
1 parent bc1d8a1 commit 809b5e1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ jobs:
docker tag $IMAGE_NAME website
# Save the output for writing to the task definiton
echo "::set-output name=image::$IMAGE_NAME"
echo "image=${IMAGE_NAME}" >> $GITHUB_OUTPUT
##################################
##################################
Expand Down Expand Up @@ -125,7 +125,7 @@ jobs:
docker push $ECR_REGISTRY/$ECR_REPOSITORY:latest
# Save the output for writing to the task definiton
echo "::set-output name=image::$IMAGE_NAME"
echo "image=${IMAGE_NAME}" >> $GITHUB_OUTPUT
##################################
##################################
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ jobs:
# https://github.com/actions/cache/blob/main/examples.md#node---yarn
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT

- name: Cache yarn
uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8
Expand Down Expand Up @@ -116,7 +116,7 @@ jobs:
FILES_PER_BATCH: 50
run: |
tests=$(find test -name '*_test.rb' -not -path 'test/system/*' | xargs -n ${{ env.FILES_PER_BATCH }} | xargs -I {} echo '"{}"' | tr '\n' ',')
echo "::set-output name=matrix::{\"tests\":[${tests}]}"
echo "matrix={\"tests\":[${tests}]}" >> $GITHUB_OUTPUT
ruby-tests:
if: github.repository == 'exercism/website'
Expand Down Expand Up @@ -186,7 +186,7 @@ jobs:
# https://github.com/actions/cache/blob/main/examples.md#node---yarn
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT

- name: Cache yarn
uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8
Expand Down Expand Up @@ -276,7 +276,7 @@ jobs:
FILES_PER_BATCH: 12
run: |
tests=$(find test/system -name *_test.rb | xargs -n ${{ env.FILES_PER_BATCH }} | xargs -I {} echo '"{}"' | tr '\n' ',')
echo "::set-output name=matrix::{\"tests\":[${tests}]}"
run: echo "matrix={\"tests\":[${tests}]}" >> $GITHUB_OUTPUT
system-tests:
if: github.repository == 'exercism/website'
Expand Down Expand Up @@ -354,7 +354,7 @@ jobs:
# https://github.com/actions/cache/blob/main/examples.md#node---yarn
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT

- name: Cache yarn
uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8
Expand Down Expand Up @@ -444,7 +444,7 @@ jobs:
# https://github.com/actions/cache/blob/main/examples.md#node---yarn
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT

- name: Cache yarn
uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8
Expand Down

0 comments on commit 809b5e1

Please sign in to comment.