Skip to content

Commit 6d376d8

Browse files
authored
Branch was updated using the 'autoupdate branch' Actions workflow.
2 parents db100ba + a2a427f commit 6d376d8

2 files changed

Lines changed: 5 additions & 9 deletions

File tree

.github/workflows/update-graphql-files.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@ env:
99
FREEZE: ${{ secrets.FREEZE }}
1010

1111
on:
12-
schedule:
13-
- cron: '20 16 * * *' # run every day at 16:20 UTC / 8:20 PST
12+
workflow_dispatch:
13+
#schedule:
14+
#- cron: '20 16 * * *' # run every day at 16:20 UTC / 8:20 PST
1415

1516
jobs:
1617
update_graphql_files:
@@ -36,7 +37,7 @@ jobs:
3637
- name: Run updater scripts
3738
env:
3839
# need to use a token from a user with access to github/github for this step
39-
GITHUB_TOKEN: ${{ secrets.ZEKE_PAT_WITH_REPO_AND_WORKFLOW_SCOPE_FOR_REPO_SYNC }}
40+
GITHUB_TOKEN: ${{ secrets.OCTOMERGER_PAT_WITH_REPO_AND_WORKFLOW_SCOPE }}
4041
run: |
4142
script/graphql/update-files.js
4243
- name: Create pull request

tests/unit/pages.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -149,12 +149,7 @@ describe('pages module', () => {
149149
})
150150

151151
test('has an identical key list to the deep permalinks of the array', async () => {
152-
const allPermalinks = pages.flatMap(page => page.permalinks.map(pl => {
153-
if (pl.href === '/es/enterprise-server@2.22/insights/installing-and-configuring-github-insights/updating-github-insights') {
154-
console.log('Source page:', page.relativePath)
155-
}
156-
return pl.href
157-
})).sort()
152+
const allPermalinks = pages.flatMap(page => page.permalinks.map(pl => pl.href)).sort()
158153
const allPageUrls = Object.keys(pageMap).sort()
159154

160155
expect(allPageUrls).toEqual(allPermalinks)

0 commit comments

Comments
 (0)