2
.github/workflows/link-check-on-pr.yml
vendored
2
.github/workflows/link-check-on-pr.yml
vendored
@@ -26,7 +26,7 @@ concurrency:
|
||||
jobs:
|
||||
check-links:
|
||||
runs-on: ${{ fromJSON('["ubuntu-latest", "ubuntu-20.04-xl"]')[github.repository == 'github/docs-internal'] }}
|
||||
if: github.repository == 'github/docs-internal' || github.repository == 'github/docs'
|
||||
if: (github.repository == 'github/docs-internal' || github.repository == 'github/docs') && github.repository_owner == 'github'
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@dcd71f646680f2efd8db4afa5ad64fdcba30e748
|
||||
|
||||
4
.github/workflows/test.yml
vendored
4
.github/workflows/test.yml
vendored
@@ -80,7 +80,7 @@ jobs:
|
||||
- name: Figure out which docs-early-access branch to checkout, if internal repo
|
||||
if: ${{ github.repository == 'github/docs-internal' }}
|
||||
id: check-early-access
|
||||
uses: actions/github-script@2b34a689ec86a68d8ab9478298f91d5401337b7d
|
||||
uses: actions/github-script@d556feaca394842dc55e4734bf3bb9f685482fa0
|
||||
env:
|
||||
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
|
||||
with:
|
||||
@@ -92,7 +92,7 @@ jobs:
|
||||
// example, the value becomes 'main'.
|
||||
const { BRANCH_NAME } = process.env
|
||||
try {
|
||||
const response = await github.repos.getBranch({
|
||||
const response = await github.rest.repos.getBranch({
|
||||
owner: 'github',
|
||||
repo: 'docs-early-access',
|
||||
branch: BRANCH_NAME,
|
||||
|
||||
Reference in New Issue
Block a user