ci: Fix workflow warnings (#1243)
Fixes the following warnings from GitHub Actions: - "The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/" - "The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/"
This commit is contained in:
parent
868a8c5d8e
commit
9962075d3b
|
@ -39,7 +39,7 @@ jobs:
|
||||||
breathe
|
breathe
|
||||||
|
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
ref: ${{ inputs.ref }}
|
ref: ${{ inputs.ref }}
|
||||||
|
|
||||||
|
|
|
@ -50,7 +50,7 @@ jobs:
|
||||||
INCLUDE: ${{ steps.configure.outputs.INCLUDE }}
|
INCLUDE: ${{ steps.configure.outputs.INCLUDE }}
|
||||||
OS: ${{ steps.configure.outputs.OS }}
|
OS: ${{ steps.configure.outputs.OS }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
ref: ${{ inputs.ref }}
|
ref: ${{ inputs.ref }}
|
||||||
|
|
||||||
|
@ -67,8 +67,13 @@ jobs:
|
||||||
const os = include.map((config) => config.os);
|
const os = include.map((config) => config.os);
|
||||||
|
|
||||||
// Output JSON objects consumed by the build matrix below.
|
// Output JSON objects consumed by the build matrix below.
|
||||||
console.log(`::set-output name=INCLUDE::${ JSON.stringify(include) }`);
|
const fs = require('fs');
|
||||||
console.log(`::set-output name=OS::${ JSON.stringify(os) }`);
|
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.
|
// Log the outputs, for the sake of debugging this script.
|
||||||
console.log({enableSelfHosted, include, os});
|
console.log({enableSelfHosted, include, os});
|
||||||
|
@ -93,7 +98,7 @@ jobs:
|
||||||
run: git config --global core.autocrlf false
|
run: git config --global core.autocrlf false
|
||||||
|
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
ref: ${{ inputs.ref }}
|
ref: ${{ inputs.ref }}
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
|
|
|
@ -34,7 +34,7 @@ jobs:
|
||||||
echo "TARGET_REF=${{ github.event.inputs.ref || github.event.release.tag_name }}" >> $GITHUB_ENV
|
echo "TARGET_REF=${{ github.event.inputs.ref || github.event.release.tag_name }}" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
ref: ${{ env.TARGET_REF }}
|
ref: ${{ env.TARGET_REF }}
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
|
|
|
@ -27,7 +27,7 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
ref: ${{ github.event.inputs.ref || github.ref }}
|
ref: ${{ github.event.inputs.ref || github.ref }}
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
|
|
|
@ -61,7 +61,7 @@ jobs:
|
||||||
release_id: ${{ steps.draft_release.outputs.id }}
|
release_id: ${{ steps.draft_release.outputs.id }}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
ref: ${{ needs.setup.outputs.tag }}
|
ref: ${{ needs.setup.outputs.tag }}
|
||||||
|
|
||||||
|
|
|
@ -27,7 +27,7 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
ref: ${{ inputs.ref }}
|
ref: ${{ inputs.ref }}
|
||||||
# We must use 'fetch-depth: 2', or else the linter won't have another
|
# We must use 'fetch-depth: 2', or else the linter won't have another
|
||||||
|
|
|
@ -35,7 +35,7 @@ jobs:
|
||||||
echo "TARGET_REF=${{ github.event.inputs.ref || github.event.release.tag_name }}" >> $GITHUB_ENV
|
echo "TARGET_REF=${{ github.event.inputs.ref || github.event.release.tag_name }}" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
ref: ${{ env.TARGET_REF }}
|
ref: ${{ env.TARGET_REF }}
|
||||||
|
|
||||||
|
|
|
@ -29,7 +29,7 @@ jobs:
|
||||||
outputs:
|
outputs:
|
||||||
MATRIX: ${{ steps.configure.outputs.MATRIX }}
|
MATRIX: ${{ steps.configure.outputs.MATRIX }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
ref: ${{ inputs.ref }}
|
ref: ${{ inputs.ref }}
|
||||||
|
|
||||||
|
@ -44,7 +44,9 @@ jobs:
|
||||||
});
|
});
|
||||||
|
|
||||||
// Output a JSON object consumed by the build matrix below.
|
// 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.
|
// Log the outputs, for the sake of debugging this script.
|
||||||
console.log({matrix});
|
console.log({matrix});
|
||||||
|
@ -63,7 +65,7 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
ref: ${{ inputs.ref }}
|
ref: ${{ inputs.ref }}
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
|
|
|
@ -36,7 +36,7 @@ jobs:
|
||||||
echo "::set-output name=ref::${{ github.event.inputs.ref || github.event.release.tag_name }}"
|
echo "::set-output name=ref::${{ github.event.inputs.ref || github.event.release.tag_name }}"
|
||||||
|
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
ref: ${{ steps.ref.outputs.ref }}
|
ref: ${{ steps.ref.outputs.ref }}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue