2023-02-28 02:23:01 +08:00
|
|
|
name: "bulk quest import"
|
|
|
|
on:
|
2023-03-10 09:10:03 +08:00
|
|
|
schedule:
|
|
|
|
- cron: '0 10 * * *' # UTC time, that's 5:00 am EST, 2:00 am PST.
|
2023-02-28 02:23:01 +08:00
|
|
|
workflow_dispatch:
|
|
|
|
inputs:
|
|
|
|
reason:
|
|
|
|
description: "The reason for running the bulk import workflow"
|
|
|
|
required: true
|
|
|
|
default: "Initial import into Quest (Azure DevOps)"
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
bulk-import:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
permissions:
|
|
|
|
issues: write
|
2024-04-26 05:36:42 +08:00
|
|
|
pull-requests: write
|
2023-04-01 09:41:13 +08:00
|
|
|
if: ${{ github.repository_owner == 'dotnet' }}
|
|
|
|
|
2023-02-28 02:23:01 +08:00
|
|
|
steps:
|
|
|
|
- name: "Print manual bulk import run reason"
|
|
|
|
if: ${{ github.event_name == 'workflow_dispatch' }}
|
|
|
|
run: |
|
|
|
|
echo "Reason: ${{ github.event.inputs.reason }}"
|
|
|
|
|
|
|
|
- name: bulk-sequester
|
|
|
|
id: bulk-sequester
|
|
|
|
uses: dotnet/docs-tools/actions/sequester@main
|
|
|
|
env:
|
|
|
|
ImportOptions__ApiKeys__GitHubToken: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
ImportOptions__ApiKeys__OSPOKey: ${{ secrets.OSPO_KEY }}
|
|
|
|
ImportOptions__ApiKeys__QuestKey: ${{ secrets.QUEST_KEY }}
|
2024-02-10 02:51:48 +08:00
|
|
|
ImportOptions__ApiKeys__SequesterPrivateKey: ${{ secrets.SEQUESTER_PRIVATEKEY }}
|
|
|
|
ImportOptions__ApiKeys__SequesterAppID: ${{ secrets.SEQUESTER_APPID }}
|
2023-02-28 02:23:01 +08:00
|
|
|
with:
|
|
|
|
org: ${{ github.repository_owner }}
|
|
|
|
repo: ${{ github.repository }}
|
|
|
|
issue: '-1'
|