Skip to content

Commit

Permalink
ci: github: update Github actions versions
Browse files Browse the repository at this point in the history
Update Github actions to their latest versions to fix the following
warnings on runs:
```
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: Stephan Linz <[email protected]>
  • Loading branch information
rexut committed Feb 9, 2024
1 parent c526389 commit f0c3a3a
Show file tree
Hide file tree
Showing 10 changed files with 31 additions and 31 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/doc-build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2021-2023 TiaC Systems
# Copyright (c) 2021-2024 TiaC Systems
# Copyright (c) 2021 Li-Pro.Net
# SPDX-License-Identifier: Apache-2.0

Expand Down Expand Up @@ -71,7 +71,7 @@ jobs:
sudo apt-get install -y ninja-build doxygen mscgen graphviz
- name: Restore PIP Cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.cache/pip
key: ${{ runner.os }}-doc-pip
Expand Down Expand Up @@ -142,7 +142,7 @@ jobs:
fi
- name: Upload artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: doc
path: workspace/build/doc
4 changes: 2 additions & 2 deletions .github/workflows/doc-publish.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2021-2022 TiaC Systems
# Copyright (c) 2021-2024 TiaC Systems
# Copyright (c) 2021 Li-Pro.Net
# SPDX-License-Identifier: Apache-2.0

Expand All @@ -17,7 +17,7 @@ jobs:

steps:
- name: Download artifact
uses: actions/github-script@v6
uses: actions/github-script@v7
with:
script: |
var artifacts = await github.rest.actions.listWorkflowRunArtifacts({
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/doc-remove.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2021-2022 TiaC Systems
# Copyright (c) 2021-2024 TiaC Systems
# Copyright (c) 2021 Li-Pro.Net
# SPDX-License-Identifier: Apache-2.0

Expand Down Expand Up @@ -41,7 +41,7 @@ jobs:
fi
- name: Upload artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: doc
path: doc
4 changes: 2 additions & 2 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2021-2022 TiaC Systems
# Copyright (c) 2021-2024 TiaC Systems
# Copyright (c) 2021 Li-Pro.Net
# SPDX-License-Identifier: Apache-2.0

Expand All @@ -11,6 +11,6 @@ jobs:
triage:
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@v4
- uses: actions/labeler@v5
with:
repo-token: '${{ secrets.GITHUB_TOKEN }}'
6 changes: 3 additions & 3 deletions .github/workflows/qa-compliance.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2021-2023 TiaC Systems
# Copyright (c) 2021-2024 TiaC Systems
# SPDX-License-Identifier: Apache-2.0

name: QA Compliance Check
Expand Down Expand Up @@ -34,7 +34,7 @@ jobs:
fetch-depth: 0

- name: Restore PIP Cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.cache/pip
key: ${{ runner.os }}-doc-pip
Expand Down Expand Up @@ -101,7 +101,7 @@ jobs:
-c origin/${BASE_REF}..
- name: Upload compliance tests results
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: compliance.xml
path: workspace/bridle/compliance.xml
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/qa-igt-slz.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2021-2022 TiaC Systems
# Copyright (c) 2021-2024 TiaC Systems
# Copyright (c) 2021 Li-Pro.Net
# SPDX-License-Identifier: Apache-2.0

Expand Down Expand Up @@ -26,7 +26,7 @@ jobs:
rm -rf "${{ github.workspace }}/workspace"
- name: Checkout the code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
path: workspace/bridle
submodules: recursive
Expand Down Expand Up @@ -85,14 +85,14 @@ jobs:
continue-on-error: true

- name: Upload results
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: twister_report.xml
path: workspace/twister-out/twister_report.xml
continue-on-error: true

- name: Convert integration test reports to annotations
uses: mikepenz/action-junit-report@v3
uses: mikepenz/action-junit-report@v4
with:
check_name: twister-report (${{ matrix.board }})
report_paths: "**/twister-out/twister_report.xml"
Expand Down
18 changes: 9 additions & 9 deletions .github/workflows/qa-integration.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2021-2023 TiaC Systems
# Copyright (c) 2021-2024 TiaC Systems
# Copyright (c) 2021 Li-Pro.Net
# SPDX-License-Identifier: Apache-2.0

Expand Down Expand Up @@ -91,7 +91,7 @@ jobs:
ref: ${{ github.ref }}

- name: Restore PIP Cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.cache/pip
key: ${{ runner.os }}-qa-pip
Expand Down Expand Up @@ -134,13 +134,13 @@ jobs:
--testsuite-root bridle/samples/waveshare_pico_environment_sensor
- name: Upload integration test results
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: twister-samples.xml
path: workspace/twister-out/twister.xml

- name: Convert integration test reports to annotations
uses: mikepenz/action-junit-report@v3
uses: mikepenz/action-junit-report@v4
with:
check_name: twister-report (samples)
report_paths: "**/twister-out/twister.xml"
Expand Down Expand Up @@ -203,7 +203,7 @@ jobs:
ref: ${{ github.ref }}

- name: Restore PIP Cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.cache/pip
key: ${{ runner.os }}-qa-pip
Expand Down Expand Up @@ -254,13 +254,13 @@ jobs:
--testsuite-root bridle/tests/shields/x_grove_testbed/dts_bindings
- name: Upload integration test results
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: twister-shields.xml
path: workspace/twister-out/twister.xml

- name: Convert integration test reports to annotations
uses: mikepenz/action-junit-report@v3
uses: mikepenz/action-junit-report@v4
with:
check_name: twister-report (shields)
report_paths: "**/twister-out/twister.xml"
Expand Down Expand Up @@ -373,13 +373,13 @@ jobs:
--tag can
- name: Upload integration test results
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: twister-targets.xml
path: workspace/twister-out/twister.xml

- name: Convert integration test reports to annotations
uses: mikepenz/action-junit-report@v3
uses: mikepenz/action-junit-report@v4
with:
check_name: twister-report (${{ matrix.board }})
report_paths: "**/twister-out/twister.xml"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/qa-licenses.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2021-2023 TiaC Systems
# Copyright (c) 2021-2024 TiaC Systems
# SPDX-License-Identifier: Apache-2.0

name: QA License Check
Expand All @@ -24,7 +24,7 @@ jobs:
directory-to-scan: 'scan/'

- name: Upload results
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: scancode
path: ./artifacts
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/qa-manifest.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2021-2022 TiaC Systems
# Copyright (c) 2021-2024 TiaC Systems
# Copyright (c) 2021 Li-Pro.Net
# SPDX-License-Identifier: Apache-2.0

Expand All @@ -17,7 +17,7 @@ jobs:

steps:
- name: Checkout the code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
path: workspace/bridle
ref: ${{ github.event.pull_request.head.sha }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2021-2022 TiaC Systems
# Copyright (c) 2021-2024 TiaC Systems
# SPDX-License-Identifier: Apache-2.0

name: Mark Stale Issues and Pull Requests
Expand All @@ -18,7 +18,7 @@ jobs:
if: github.repository == 'tiacsys/bridle'

steps:
- uses: actions/stale@v6
- uses: actions/stale@v9

Check warning on line 21 in .github/workflows/stale.yml

View workflow job for this annotation

GitHub Actions / Run compliance checks on patch series (PR)

YAMLLint (indentation)

.github/workflows/stale.yml:21 wrong indentation: expected 6 but found 4
with:
days-before-stale: 90
days-before-close: 30
Expand Down

0 comments on commit f0c3a3a

Please sign in to comment.