diff --git a/.github/workflows/build-docs.yaml b/.github/workflows/build-docs.yaml index 1b187b30fd..6cb41dbc20 100644 --- a/.github/workflows/build-docs.yaml +++ b/.github/workflows/build-docs.yaml @@ -39,7 +39,7 @@ jobs: breathe - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: ref: ${{ inputs.ref }} diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 011f16f39b..99372a5638 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -50,7 +50,7 @@ jobs: INCLUDE: ${{ steps.configure.outputs.INCLUDE }} OS: ${{ steps.configure.outputs.OS }} steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 with: ref: ${{ inputs.ref }} @@ -67,8 +67,13 @@ jobs: const os = include.map((config) => config.os); // Output JSON objects consumed by the build matrix below. - console.log(`::set-output name=INCLUDE::${ JSON.stringify(include) }`); - console.log(`::set-output name=OS::${ JSON.stringify(os) }`); + const fs = require('fs'); + fs.writeFileSync(process.env.GITHUB_OUTPUT, + [ + `INCLUDE=${ JSON.stringify(include) }`, + `OS=${ JSON.stringify(os) }`, + ].join('\n'), + {flag: 'a'}); // Log the outputs, for the sake of debugging this script. console.log({enableSelfHosted, include, os}); @@ -93,7 +98,7 @@ jobs: run: git config --global core.autocrlf false - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: ref: ${{ inputs.ref }} submodules: recursive diff --git a/.github/workflows/docker-hub-release.yaml b/.github/workflows/docker-hub-release.yaml index d128a314bc..4f42639502 100644 --- a/.github/workflows/docker-hub-release.yaml +++ b/.github/workflows/docker-hub-release.yaml @@ -34,7 +34,7 @@ jobs: echo "TARGET_REF=${{ github.event.inputs.ref || github.event.release.tag_name }}" >> $GITHUB_ENV - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: ref: ${{ env.TARGET_REF }} submodules: recursive diff --git a/.github/workflows/docker-image.yaml b/.github/workflows/docker-image.yaml index 67f71b7796..a48c940da8 100644 --- a/.github/workflows/docker-image.yaml +++ b/.github/workflows/docker-image.yaml @@ -27,7 +27,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: ref: ${{ github.event.inputs.ref || github.ref }} submodules: recursive diff --git a/.github/workflows/github-release.yaml b/.github/workflows/github-release.yaml index 2833181776..040b0e874b 100644 --- a/.github/workflows/github-release.yaml +++ b/.github/workflows/github-release.yaml @@ -61,7 +61,7 @@ jobs: release_id: ${{ steps.draft_release.outputs.id }} steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: ref: ${{ needs.setup.outputs.tag }} diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index be6bd83c0c..81b9b1dd2d 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -27,7 +27,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: ref: ${{ inputs.ref }} # We must use 'fetch-depth: 2', or else the linter won't have another diff --git a/.github/workflows/npm-release.yaml b/.github/workflows/npm-release.yaml index a9025c49fd..70e467adc6 100644 --- a/.github/workflows/npm-release.yaml +++ b/.github/workflows/npm-release.yaml @@ -35,7 +35,7 @@ jobs: echo "TARGET_REF=${{ github.event.inputs.ref || github.event.release.tag_name }}" >> $GITHUB_ENV - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: ref: ${{ env.TARGET_REF }} diff --git a/.github/workflows/test-linux-distros.yaml b/.github/workflows/test-linux-distros.yaml index 48f3ccc8ce..8391675e39 100644 --- a/.github/workflows/test-linux-distros.yaml +++ b/.github/workflows/test-linux-distros.yaml @@ -29,7 +29,7 @@ jobs: outputs: MATRIX: ${{ steps.configure.outputs.MATRIX }} steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 with: ref: ${{ inputs.ref }} @@ -44,7 +44,9 @@ jobs: }); // Output a JSON object consumed by the build matrix below. - console.log(`::set-output name=MATRIX::${ JSON.stringify(matrix) }`); + fs.writeFileSync(process.env.GITHUB_OUTPUT, + `MATRIX=${ JSON.stringify(matrix) }`, + {flag: 'a'}); // Log the outputs, for the sake of debugging this script. console.log({matrix}); @@ -63,7 +65,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 with: ref: ${{ inputs.ref }} submodules: recursive diff --git a/.github/workflows/update-docs.yaml b/.github/workflows/update-docs.yaml index 5b24fc274e..9cf5d8782b 100644 --- a/.github/workflows/update-docs.yaml +++ b/.github/workflows/update-docs.yaml @@ -36,7 +36,7 @@ jobs: echo "::set-output name=ref::${{ github.event.inputs.ref || github.event.release.tag_name }}" - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v3 with: ref: ${{ steps.ref.outputs.ref }}