mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-10-21 20:08:54 +00:00
This workflow is a scheduled job that runs at 23:00 every Sunday, it should only run the main repo but not the forked ones. Fixes: #4219 Signed-off-by: Bin Liu <bin@hyper.sh>
45 lines
1.3 KiB
YAML
45 lines
1.3 KiB
YAML
on:
|
|
schedule:
|
|
- cron: '0 23 * * 0'
|
|
|
|
name: Docs URL Alive Check
|
|
jobs:
|
|
test:
|
|
strategy:
|
|
matrix:
|
|
go-version: [1.17.x]
|
|
os: [ubuntu-20.04]
|
|
runs-on: ${{ matrix.os }}
|
|
env:
|
|
target_branch: ${{ github.base_ref }}
|
|
steps:
|
|
- name: Install Go
|
|
if: github.repository_owner == 'kata-containers'
|
|
uses: actions/setup-go@v2
|
|
with:
|
|
go-version: ${{ matrix.go-version }}
|
|
env:
|
|
GOPATH: ${{ runner.workspace }}/kata-containers
|
|
- name: Set env
|
|
if: github.repository_owner == 'kata-containers'
|
|
run: |
|
|
echo "GOPATH=${{ github.workspace }}" >> $GITHUB_ENV
|
|
echo "${{ github.workspace }}/bin" >> $GITHUB_PATH
|
|
- name: Checkout code
|
|
if: github.repository_owner == 'kata-containers'
|
|
uses: actions/checkout@v2
|
|
with:
|
|
fetch-depth: 0
|
|
path: ./src/github.com/${{ github.repository }}
|
|
- name: Setup
|
|
if: github.repository_owner == 'kata-containers'
|
|
run: |
|
|
cd ${GOPATH}/src/github.com/${{ github.repository }} && ./ci/setup.sh
|
|
env:
|
|
GOPATH: ${{ runner.workspace }}/kata-containers
|
|
# docs url alive check
|
|
- name: Docs URL Alive Check
|
|
if: github.repository_owner == 'kata-containers'
|
|
run: |
|
|
cd ${GOPATH}/src/github.com/${{ github.repository }} && make docs-url-alive-check
|