Update GitHub actions checkout, cache and upload-artifact from v3 to v4

This fixes several CI warnings like this one:

    Node.js 16 actions are deprecated.
    Please update the following actions to use Node.js 20: actions/checkout@v3,
    actions/cache@v3, actions/upload-artifact@v3. For more information see:
    https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
This commit is contained in:
Stefan Weil 2024-03-11 16:28:35 +01:00
parent 7055925344
commit 0b7cbb72b6
4 changed files with 13 additions and 13 deletions

View File

@ -75,7 +75,7 @@ jobs:
- package: others - package: others
build-list: bbb-mkclean bbb-pads bbb-libreoffice-docker bbb-transcription-controller bigbluebutton bbb-livekit build-list: bbb-mkclean bbb-pads bbb-libreoffice-docker bbb-transcription-controller bigbluebutton bbb-livekit
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
- name: Merge branches - name: Merge branches
uses: ./.github/actions/merge-branches uses: ./.github/actions/merge-branches
- name: Set cache-key vars - name: Set cache-key vars
@ -90,7 +90,7 @@ jobs:
- name: Handle cache - name: Handle cache
if: matrix.cache-files-list != '' if: matrix.cache-files-list != ''
id: cache-action id: cache-action
uses: actions/cache@v3 uses: actions/cache@v4
with: with:
path: artifacts.tar path: artifacts.tar
key: ${{ runner.os }}-${{ matrix.package }}-${{ env.BIGBLUEBUTTON_RELEASE }}-commits-${{ env.CACHE_KEY_FILES }}-urls-${{ env.CACHE_KEY_URLS }} key: ${{ runner.os }}-${{ matrix.package }}-${{ env.BIGBLUEBUTTON_RELEASE }}-commits-${{ env.CACHE_KEY_FILES }}-urls-${{ env.CACHE_KEY_URLS }}
@ -102,7 +102,7 @@ jobs:
echo "${{ matrix.build-list || matrix.package }}" | xargs -n 1 ./build/setup.sh echo "${{ matrix.build-list || matrix.package }}" | xargs -n 1 ./build/setup.sh
tar cvf artifacts.tar artifacts/ tar cvf artifacts.tar artifacts/
- name: Archive packages - name: Archive packages
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v4
with: with:
name: artifacts_${{ matrix.package }}.tar name: artifacts_${{ matrix.package }}.tar
path: artifacts.tar path: artifacts.tar
@ -114,7 +114,7 @@ jobs:
matrix: matrix:
shard: [1/8, 2/8, 3/8, 4/8, 5/8, 6/8, 7/8, 8/8] shard: [1/8, 2/8, 3/8, 4/8, 5/8, 6/8, 7/8, 8/8]
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
- name: Merge branches - name: Merge branches
uses: ./.github/actions/merge-branches uses: ./.github/actions/merge-branches
- run: ./build/get_external_dependencies.sh - run: ./build/get_external_dependencies.sh
@ -309,7 +309,7 @@ jobs:
' '
- if: always() && github.event_name == 'pull_request' - if: always() && github.event_name == 'pull_request'
name: Upload blob report to GitHub Actions Artifacts name: Upload blob report to GitHub Actions Artifacts
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v4
with: with:
name: all-blob-reports name: all-blob-reports
path: bigbluebutton-tests/playwright/blob-report path: bigbluebutton-tests/playwright/blob-report
@ -340,12 +340,12 @@ jobs:
echo "MATRIX_SHARD=$(echo ${{ matrix.shard }} | tr '/' '_')" >> $GITHUB_ENV echo "MATRIX_SHARD=$(echo ${{ matrix.shard }} | tr '/' '_')" >> $GITHUB_ENV
EOF EOF
- if: failure() - if: failure()
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v4
with: with:
name: bbb-configs-${{ env.MATRIX_SHARD }} name: bbb-configs-${{ env.MATRIX_SHARD }}
path: configs path: configs
- if: failure() - if: failure()
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v4
with: with:
name: bbb-logs-${{ env.MATRIX_SHARD }} name: bbb-logs-${{ env.MATRIX_SHARD }}
path: ./bbb-logs.tar.gz path: ./bbb-logs.tar.gz
@ -354,7 +354,7 @@ jobs:
needs: install-and-run-tests needs: install-and-run-tests
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
- uses: actions/setup-node@v3 - uses: actions/setup-node@v3
with: with:
node-version: 18 node-version: 18
@ -370,7 +370,7 @@ jobs:
working-directory: ./bigbluebutton-tests/playwright working-directory: ./bigbluebutton-tests/playwright
run: npx playwright merge-reports --reporter html ./all-blob-reports run: npx playwright merge-reports --reporter html ./all-blob-reports
- name: Upload HTML tests report - name: Upload HTML tests report
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v4
with: with:
name: tests-report name: tests-report
path: | path: |
@ -385,7 +385,7 @@ jobs:
echo ${{ github.run_id }} > ./pr-comment-data/workflow_id echo ${{ github.run_id }} > ./pr-comment-data/workflow_id
- name: Upload PR data for auto-comment - name: Upload PR data for auto-comment
if: github.event_name == 'pull_request' if: github.event_name == 'pull_request'
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v4
with: with:
name: pr-comment-data name: pr-comment-data
path: pr-comment-data path: pr-comment-data

View File

@ -22,7 +22,7 @@ jobs:
working-directory: ./docs working-directory: ./docs
steps: steps:
# Setup # Setup
- uses: actions/checkout@v3 - uses: actions/checkout@v4
- uses: actions/setup-node@v3 - uses: actions/setup-node@v3
with: with:
node-version: 20 node-version: 20

View File

@ -23,7 +23,7 @@ jobs:
ts-code-compilation: ts-code-compilation:
runs-on: ubuntu-22.04 runs-on: ubuntu-22.04
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
with: with:
fetch-depth: 1 fetch-depth: 1
- name: Merge branches - name: Merge branches

View File

@ -23,7 +23,7 @@ jobs:
ts-code-validation: ts-code-validation:
runs-on: ubuntu-22.04 runs-on: ubuntu-22.04
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v4
with: with:
fetch-depth: 1 fetch-depth: 1
- name: Merge branches - name: Merge branches