From 8f62fd756bb3ef4ea81bff0fcffca9b3b4949cea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maximilian=20Schwarzm=C3=BCller?= <28806196+maxschwarzmueller@users.noreply.github.com> Date: Thu, 17 Nov 2022 17:43:05 +0100 Subject: [PATCH] switched to new output syntax --- .../03 Finished Project/.github/workflows/demo.yml | 2 +- .../02 Finished Project/.github/workflows/reusable.yml | 2 +- .../02 Docker Code/.github/actions/cached-deps/action.yml | 2 +- .../02 Docker Code/.github/actions/deploy-s3-javascript/main.js | 2 +- .../03 Finished Project/.github/actions/cached-deps/action.yml | 2 +- .../.github/actions/deploy-s3-javascript/main.js | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Code/04 Artifacts & Outputs/03 Finished Project/.github/workflows/demo.yml b/Code/04 Artifacts & Outputs/03 Finished Project/.github/workflows/demo.yml index b87fadea..f7b4df25 100644 --- a/Code/04 Artifacts & Outputs/03 Finished Project/.github/workflows/demo.yml +++ b/Code/04 Artifacts & Outputs/03 Finished Project/.github/workflows/demo.yml @@ -39,7 +39,7 @@ jobs: run: npm run build - name: Publish JS filename id: publish - run: find dist/assets/*.js -type f -execdir echo '::set-output name=script-file::{}' ';' + run: find dist/assets/*.js -type f -execdir echo 'script-file={}' >> $GITHUB_OUTPUT ';' - name: Upload artifacts uses: actions/upload-artifact@v3 with: diff --git a/Code/06 Execution Flow/02 Finished Project/.github/workflows/reusable.yml b/Code/06 Execution Flow/02 Finished Project/.github/workflows/reusable.yml index 7e28d520..bdf0123c 100644 --- a/Code/06 Execution Flow/02 Finished Project/.github/workflows/reusable.yml +++ b/Code/06 Execution Flow/02 Finished Project/.github/workflows/reusable.yml @@ -30,4 +30,4 @@ jobs: run: echo "Deploying & uploading..." - name: Set result output id: set-result - run: echo "::set-output name=step-result::success" \ No newline at end of file + run: echo "step-result=success" >> $GITHUB_OUTPUT \ No newline at end of file diff --git a/Code/08 Custom Actions/02 Docker Code/.github/actions/cached-deps/action.yml b/Code/08 Custom Actions/02 Docker Code/.github/actions/cached-deps/action.yml index d7bb7c82..0c163013 100644 --- a/Code/08 Custom Actions/02 Docker Code/.github/actions/cached-deps/action.yml +++ b/Code/08 Custom Actions/02 Docker Code/.github/actions/cached-deps/action.yml @@ -24,5 +24,5 @@ runs: if: steps.cache.outputs.cache-hit != 'true' || inputs.caching != 'true' run: | npm ci - echo "::set-output name=cache::'${{ inputs.caching }}'" + echo "cache='${{ inputs.caching }}'" >> $GITHUB_OUTPUT shell: bash \ No newline at end of file diff --git a/Code/08 Custom Actions/02 Docker Code/.github/actions/deploy-s3-javascript/main.js b/Code/08 Custom Actions/02 Docker Code/.github/actions/deploy-s3-javascript/main.js index 053530cf..ddac2330 100644 --- a/Code/08 Custom Actions/02 Docker Code/.github/actions/deploy-s3-javascript/main.js +++ b/Code/08 Custom Actions/02 Docker Code/.github/actions/deploy-s3-javascript/main.js @@ -13,7 +13,7 @@ function run() { exec.exec(`aws s3 sync ${distFolder} ${s3Uri} --region ${bucketRegion}`); const websiteUrl = `http://${bucket}.s3-website-${bucketRegion}.amazonaws.com`; - core.setOutput('website-url', websiteUrl); // ::set-output + core.setOutput('website-url', websiteUrl); // echo "website-url=..." >> $GITHUB_OUTPUT } run(); diff --git a/Code/08 Custom Actions/03 Finished Project/.github/actions/cached-deps/action.yml b/Code/08 Custom Actions/03 Finished Project/.github/actions/cached-deps/action.yml index d7bb7c82..0c163013 100644 --- a/Code/08 Custom Actions/03 Finished Project/.github/actions/cached-deps/action.yml +++ b/Code/08 Custom Actions/03 Finished Project/.github/actions/cached-deps/action.yml @@ -24,5 +24,5 @@ runs: if: steps.cache.outputs.cache-hit != 'true' || inputs.caching != 'true' run: | npm ci - echo "::set-output name=cache::'${{ inputs.caching }}'" + echo "cache='${{ inputs.caching }}'" >> $GITHUB_OUTPUT shell: bash \ No newline at end of file diff --git a/Code/08 Custom Actions/03 Finished Project/.github/actions/deploy-s3-javascript/main.js b/Code/08 Custom Actions/03 Finished Project/.github/actions/deploy-s3-javascript/main.js index 053530cf..ddac2330 100644 --- a/Code/08 Custom Actions/03 Finished Project/.github/actions/deploy-s3-javascript/main.js +++ b/Code/08 Custom Actions/03 Finished Project/.github/actions/deploy-s3-javascript/main.js @@ -13,7 +13,7 @@ function run() { exec.exec(`aws s3 sync ${distFolder} ${s3Uri} --region ${bucketRegion}`); const websiteUrl = `http://${bucket}.s3-website-${bucketRegion}.amazonaws.com`; - core.setOutput('website-url', websiteUrl); // ::set-output + core.setOutput('website-url', websiteUrl); // echo "website-url=..." >> $GITHUB_OUTPUT } run();