mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-29 00:37:24 +00:00
Merge pull request #4617 from Yuan-Zhuo/main
build: save lines for repository_owner check
This commit is contained in:
commit
0024b8d10a
7
.github/workflows/docs-url-alive-check.yaml
vendored
7
.github/workflows/docs-url-alive-check.yaml
vendored
@ -10,35 +10,32 @@ jobs:
|
|||||||
go-version: [1.17.x]
|
go-version: [1.17.x]
|
||||||
os: [ubuntu-20.04]
|
os: [ubuntu-20.04]
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
|
# don't run this action on forks
|
||||||
|
if: github.repository_owner == 'kata-containers'
|
||||||
env:
|
env:
|
||||||
target_branch: ${{ github.base_ref }}
|
target_branch: ${{ github.base_ref }}
|
||||||
steps:
|
steps:
|
||||||
- name: Install Go
|
- name: Install Go
|
||||||
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: 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: 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: 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: 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