Skip to content

Commit f10530a

Browse files
authored
Stagger the run time (#35117)
Stagger the cron job entry for running sequester in each repo according to [this table](https://github.com/dotnet/docs-tools/tree/main/actions/sequester#staggering-times) In addition, fix one token error in the manual run script
1 parent f22ba88 commit f10530a

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.github/workflows/quest-bulk.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
name: "bulk quest import"
22
on:
33
schedule:
4-
- cron: '0 10 * * *' # UTC time, that's 5:00 am EST, 2:00 am PST.
5-
- cron: '0 9 6 * *' # This is the morning of the 6th.
4+
- cron: '30 12 1-5,6-31 * *' # UTC time, that's 7:30 am EST, 4:30 am PST.
5+
- cron: '30 12 6 * *' # This is the morning of the 6th.
66
workflow_dispatch:
77
inputs:
88
reason:
@@ -50,5 +50,5 @@ jobs:
5050
org: ${{ github.repository_owner }}
5151
repo: ${{ github.repository }}
5252
issue: '-1'
53-
duration: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.duration || github.event.schedule == '0 9 6 * *' && -1 || 5 }}
53+
duration: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.duration || github.event.schedule == '30 12 6 * *' && -1 || 5 }}
5454

.github/workflows/quest.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646
uses: dotnet/docs-tools/actions/sequester@main
4747
env:
4848
ImportOptions__ApiKeys__GitHubToken: ${{ secrets.GITHUB_TOKEN }}
49-
ImportOptions__ApiKeys__AzureAccessToken: ${{ steps.azure-oidc-auth.outputs.access-token }}
49+
ImportOptions__ApiKeys__AzureAccessToken: ${{ steps.azure-oidc-auth.outputs.access-token }}s
5050
ImportOptions__ApiKeys__QuestKey: ${{ secrets.QUEST_KEY }}
5151
ImportOptions__ApiKeys__SequesterPrivateKey: ${{ secrets.SEQUESTER_PRIVATEKEY }}
5252
ImportOptions__ApiKeys__SequesterAppID: ${{ secrets.SEQUESTER_APPID }}
@@ -62,7 +62,7 @@ jobs:
6262
uses: dotnet/docs-tools/actions/sequester@main
6363
env:
6464
ImportOptions__ApiKeys__GitHubToken: ${{ secrets.GITHUB_TOKEN }}
65-
ImportOptions__ApiKeys__AzureAccessToken: ${{ $AZURE_ACCESS_TOKEN }}
65+
ImportOptions__ApiKeys__AzureAccessToken: ${{ steps.azure-oidc-auth.outputs.access-token }}
6666
ImportOptions__ApiKeys__QuestKey: ${{ secrets.QUEST_KEY }}
6767
ImportOptions__ApiKeys__SequesterPrivateKey: ${{ secrets.SEQUESTER_PRIVATEKEY }}
6868
ImportOptions__ApiKeys__SequesterAppID: ${{ secrets.SEQUESTER_APPID }}

0 commit comments

Comments
 (0)