mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-22 21:49:41 +00:00
ci: Don't run Docs URL Alive Check workflow on forks
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>
This commit is contained in:
parent
79d93f1fe7
commit
7bc4ab68c3
10
.github/workflows/docs-url-alive-check.yaml
vendored
10
.github/workflows/docs-url-alive-check.yaml
vendored
@ -14,31 +14,31 @@ jobs:
|
|||||||
target_branch: ${{ github.base_ref }}
|
target_branch: ${{ github.base_ref }}
|
||||||
steps:
|
steps:
|
||||||
- name: Install Go
|
- name: Install Go
|
||||||
if: ${{ !contains(github.event.pull_request.labels.*.name, 'force-skip-ci') }}
|
if: github.repository_owner == 'kata-containers'
|
||||||
uses: actions/setup-go@v2
|
uses: actions/setup-go@v2
|
||||||
with:
|
with:
|
||||||
go-version: ${{ matrix.go-version }}
|
go-version: ${{ matrix.go-version }}
|
||||||
env:
|
env:
|
||||||
GOPATH: ${{ runner.workspace }}/kata-containers
|
GOPATH: ${{ runner.workspace }}/kata-containers
|
||||||
- name: Set env
|
- name: Set env
|
||||||
if: ${{ !contains(github.event.pull_request.labels.*.name, 'force-skip-ci') }}
|
if: github.repository_owner == 'kata-containers'
|
||||||
run: |
|
run: |
|
||||||
echo "GOPATH=${{ github.workspace }}" >> $GITHUB_ENV
|
echo "GOPATH=${{ github.workspace }}" >> $GITHUB_ENV
|
||||||
echo "${{ github.workspace }}/bin" >> $GITHUB_PATH
|
echo "${{ github.workspace }}/bin" >> $GITHUB_PATH
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
if: ${{ !contains(github.event.pull_request.labels.*.name, 'force-skip-ci') }}
|
if: github.repository_owner == 'kata-containers'
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
path: ./src/github.com/${{ github.repository }}
|
path: ./src/github.com/${{ github.repository }}
|
||||||
- name: Setup
|
- name: Setup
|
||||||
if: ${{ !contains(github.event.pull_request.labels.*.name, 'force-skip-ci') }}
|
if: github.repository_owner == 'kata-containers'
|
||||||
run: |
|
run: |
|
||||||
cd ${GOPATH}/src/github.com/${{ github.repository }} && ./ci/setup.sh
|
cd ${GOPATH}/src/github.com/${{ github.repository }} && ./ci/setup.sh
|
||||||
env:
|
env:
|
||||||
GOPATH: ${{ runner.workspace }}/kata-containers
|
GOPATH: ${{ runner.workspace }}/kata-containers
|
||||||
# docs url alive check
|
# docs url alive check
|
||||||
- name: Docs URL Alive Check
|
- name: Docs URL Alive Check
|
||||||
if: ${{ !contains(github.event.pull_request.labels.*.name, 'force-skip-ci') }}
|
if: github.repository_owner == 'kata-containers'
|
||||||
run: |
|
run: |
|
||||||
cd ${GOPATH}/src/github.com/${{ github.repository }} && make docs-url-alive-check
|
cd ${GOPATH}/src/github.com/${{ github.repository }} && make docs-url-alive-check
|
||||||
|
Loading…
Reference in New Issue
Block a user