diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6714bdb62..dbdcfb053 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -37,7 +37,7 @@ jobs: uses: actions/checkout@v3 - name: Get yarn cache directory path id: yarn-cache-dir-path - run: echo "::set-output name=dir::$(corepack yarn config get cacheFolder)" + run: echo "dir=$(corepack yarn config get cacheFolder)" >> $GITHUB_OUTPUT - uses: actions/cache@v3 id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`) @@ -66,7 +66,7 @@ jobs: uses: actions/checkout@v3 - name: Get yarn cache directory path id: yarn-cache-dir-path - run: echo "::set-output name=dir::$(corepack yarn config get cacheFolder)" + run: echo "dir=$(corepack yarn config get cacheFolder)" >> $GITHUB_OUTPUT - uses: actions/cache@v3 id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`) diff --git a/.github/workflows/companion.yml b/.github/workflows/companion.yml index fd617308a..730870060 100644 --- a/.github/workflows/companion.yml +++ b/.github/workflows/companion.yml @@ -26,7 +26,7 @@ jobs: uses: actions/checkout@v3 - name: Get yarn cache directory path id: yarn-cache-dir-path - run: echo "::set-output name=dir::$(corepack yarn config get cacheFolder)" + run: echo "dir=$(corepack yarn config get cacheFolder)" >> $GITHUB_OUTPUT - uses: actions/cache@v3 id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`) diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml index dee54a8a5..f9c67410e 100644 --- a/.github/workflows/e2e.yml +++ b/.github/workflows/e2e.yml @@ -38,7 +38,7 @@ jobs: ref: ${{ github.event.pull_request.head.sha || github.sha }} - name: Get yarn cache directory path id: yarn-cache-dir-path - run: echo "::set-output name=dir::$(corepack yarn config get cacheFolder)" + run: echo "dir=$(corepack yarn config get cacheFolder)" >> $GITHUB_OUTPUT - uses: actions/cache@v3 id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`) @@ -50,7 +50,7 @@ jobs: - name: Create cache folder for Cypress id: cypress-cache-dir-path - run: echo "::set-output name=dir::$(mktemp -d)" + run: echo "dir=$(mktemp -d)" >> $GITHUB_OUTPUT - uses: actions/cache@v3 with: path: ${{ steps.cypress-cache-dir-path.outputs.dir }} diff --git a/.github/workflows/linters.yml b/.github/workflows/linters.yml index 0140ae54b..22a538764 100644 --- a/.github/workflows/linters.yml +++ b/.github/workflows/linters.yml @@ -22,7 +22,7 @@ jobs: uses: actions/checkout@v3 - name: Get yarn cache directory path id: yarn-cache-dir-path - run: echo "::set-output name=dir::$(corepack yarn config get cacheFolder)" + run: echo "dir=$(corepack yarn config get cacheFolder)" >> $GITHUB_OUTPUT - uses: actions/cache@v3 id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`) @@ -49,7 +49,7 @@ jobs: uses: actions/checkout@v3 - name: Get yarn cache directory path id: yarn-cache-dir-path - run: echo "::set-output name=dir::$(corepack yarn config get cacheFolder)" + run: echo "dir=$(corepack yarn config get cacheFolder)" >> $GITHUB_OUTPUT - uses: actions/cache@v3 id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`) diff --git a/.github/workflows/lockile_check.yml b/.github/workflows/lockile_check.yml index 9387fb929..57fed09b3 100644 --- a/.github/workflows/lockile_check.yml +++ b/.github/workflows/lockile_check.yml @@ -20,7 +20,7 @@ jobs: uses: actions/checkout@v3 - name: Get yarn cache directory path id: yarn-cache-dir-path - run: echo "::set-output name=dir::$(corepack yarn config get cacheFolder)" + run: echo "dir=$(corepack yarn config get cacheFolder)" >> $GITHUB_OUTPUT - uses: actions/cache@v3 id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`) diff --git a/.github/workflows/manual-cdn.yml b/.github/workflows/manual-cdn.yml index a1584e4b5..a7d0ca048 100644 --- a/.github/workflows/manual-cdn.yml +++ b/.github/workflows/manual-cdn.yml @@ -15,7 +15,7 @@ jobs: uses: actions/checkout@v3 - name: Get yarn cache directory path id: yarn-cache-dir-path - run: echo "::set-output name=dir::$(corepack yarn config get cacheFolder)" + run: echo "dir=$(corepack yarn config get cacheFolder)" >> $GITHUB_OUTPUT - uses: actions/cache@v3 id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`) diff --git a/.github/workflows/release-candidate.yml b/.github/workflows/release-candidate.yml index ff05958b7..aa67edac1 100644 --- a/.github/workflows/release-candidate.yml +++ b/.github/workflows/release-candidate.yml @@ -20,7 +20,7 @@ jobs: git rebase FETCH_HEAD - name: Get yarn cache directory path id: yarn-cache-dir-path - run: echo "::set-output name=dir::$(corepack yarn config get cacheFolder)" + run: echo "dir=$(corepack yarn config get cacheFolder)" >> $GITHUB_OUTPUT - uses: actions/cache@v3 id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`) @@ -68,7 +68,7 @@ jobs: -F head="release-candidate" \ -F title="$(head -1 commitMessage)" \ -F body="$(git --no-pager diff HEAD^ -- CHANGELOG.md | awk '{ if( substr($0,0,1) == "+" && $1 != "+##" && $1 != "+Released:" && $1 != "+++" ) { print substr($0,2) } }')" \ - --jq '.number | tostring | "##[set-output name=pr_number;]"+.' + --jq '.number | tostring | "pr_number="+.' >> $GITHUB_OUTPUT env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Assign to the releaser diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b7f23aa6e..aaacea260 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -17,7 +17,7 @@ jobs: fetch-depth: 2 - name: Get yarn cache directory path id: yarn-cache-dir-path - run: echo "::set-output name=dir::$(corepack yarn config get cacheFolder)" + run: echo "dir=$(corepack yarn config get cacheFolder)" >> $GITHUB_OUTPUT - uses: actions/cache@v3 id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`) @@ -53,7 +53,7 @@ jobs: gh api -X PUT repos/${{ github.repository }}/pulls/${{ github.event.pull_request.number }}/merge \ -F merge_method="squash" \ -F commit_message="$(cat CHANGELOG.diff.md)" \ - --jq 'if .merged then "##[set-output name=sha;]"+.sha else error("not merged") end' + --jq 'if .merged then "sha="+.sha else error("not merged") end' >> $GITHUB_OUTPUT env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Create tags @@ -65,7 +65,7 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Get Uppy version number id: uppyVersion - run: jq -r '"##[set-output name=version;]"+.version' < packages/uppy/package.json + run: jq -r '"version="+.version' < packages/uppy/package.json >> $GITHUB_OUTPUT - name: Create GitHub release run: gh release create uppy@${{ steps.uppyVersion.outputs.version }} -t "Uppy ${{ steps.uppyVersion.outputs.version }}" -F CHANGELOG.diff.md env: @@ -82,7 +82,7 @@ jobs: EDGLY_SECRET: ${{secrets.EDGLY_SECRET}} - name: Check if Companion was released id: checkIfCompanionWasReleased - run: git diff --exit-code --quiet HEAD^ -- packages/@uppy/companion/package.json || echo "::set-output name=version::$(jq -r .version < packages/@uppy/companion/package.json)" + run: git diff --exit-code --quiet HEAD^ -- packages/@uppy/companion/package.json || echo "version=$(jq -r .version < packages/@uppy/companion/package.json)" >> $GITHUB_OUTPUT - name: Remove release-candidate branch run: gh api -X DELETE repos/${{ github.repository }}/git/refs/heads/release-candidate || echo "Already deleted" env: diff --git a/.github/workflows/website.yml b/.github/workflows/website.yml index d04c02c24..4c68400c7 100644 --- a/.github/workflows/website.yml +++ b/.github/workflows/website.yml @@ -18,7 +18,7 @@ jobs: uses: actions/checkout@v3 - name: Get yarn cache directory path id: yarn-cache-dir-path - run: echo "::set-output name=dir::$(corepack yarn config get cacheFolder)" + run: echo "dir=$(corepack yarn config get cacheFolder)" >> $GITHUB_OUTPUT - uses: actions/cache@v3 id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)