mirror of
https://github.com/kata-containers/kata-containers.git
synced 2026-05-07 04:20:00 +00:00
Update the action to resolve the following warning in GHA: > Node.js 20 actions are deprecated. The following actions are running > on Node.js 20 and may not work as expected: > actions/checkout@11bd71901b. > Actions will be forced to run with Node.js 24 by default starting June 2nd, 2026. Signed-off-by: stevenhorsman <steven@uk.ibm.com>
47 lines
1.2 KiB
YAML
47 lines
1.2 KiB
YAML
on:
|
|
schedule:
|
|
- cron: '0 23 * * 0'
|
|
workflow_dispatch:
|
|
|
|
permissions: {}
|
|
|
|
name: Docs URL Alive Check
|
|
jobs:
|
|
test:
|
|
name: test
|
|
runs-on: ubuntu-22.04
|
|
# don't run this action on forks
|
|
if: github.repository_owner == 'kata-containers'
|
|
env:
|
|
target_branch: ${{ github.base_ref }}
|
|
steps:
|
|
- name: Set env
|
|
run: |
|
|
echo "GOPATH=${GITHUB_WORKSPACE}" >> "$GITHUB_ENV"
|
|
- name: Checkout code
|
|
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
with:
|
|
fetch-depth: 0
|
|
persist-credentials: false
|
|
|
|
- name: Install yq
|
|
run: |
|
|
./ci/install_yq.sh
|
|
env:
|
|
INSTALL_IN_GOPATH: false
|
|
|
|
- name: Read properties from versions.yaml
|
|
run: |
|
|
go_version="$(yq '.languages.golang.version' versions.yaml)"
|
|
[ -n "$go_version" ]
|
|
echo "GO_VERSION=${go_version}" >> "$GITHUB_ENV"
|
|
|
|
- name: Setup Golang version ${{ env.GO_VERSION }}
|
|
uses: actions/setup-go@7a3fe6cf4cb3a834922a1244abfce67bcef6a0c5 # v6.2.0
|
|
with:
|
|
go-version: ${{ env.GO_VERSION }}
|
|
|
|
- name: Docs URL Alive Check
|
|
run: |
|
|
make docs-url-alive-check
|