File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99 FREEZE : ${{ secrets.FREEZE }}
1010
1111on :
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
1516jobs :
1617 update_graphql_files :
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
Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments