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 }} # don't run this action on forks if: github.repository_owner == 'kata-containers' env: target_branch: ${{ github.base_ref }} steps: - name: Install Go uses: actions/setup-go@v2 with: go-version: ${{ matrix.go-version }} env: GOPATH: ${{ runner.workspace }}/kata-containers - name: Set env run: | echo "GOPATH=${{ github.workspace }}" >> $GITHUB_ENV echo "${{ github.workspace }}/bin" >> $GITHUB_PATH - name: Checkout code uses: actions/checkout@v2 with: fetch-depth: 0 path: ./src/github.com/${{ github.repository }} - name: Setup 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 run: | cd ${GOPATH}/src/github.com/${{ github.repository }} && make docs-url-alive-check