Run quest nightly (#28629)

Quest runs nightly, rather than on each label update.

The following changes make that happen:

- The bulk action runs once a day, at a hopefully convenient time.
- The single item workflow runs only in response to a workflow dispatch event (user started)
- For security reasons, limit the permissions to write *issues*, not *contents*
pull/28636/head
Bill Wagner 2023-03-09 17:27:56 -05:00 committed by GitHub
parent 96c5a81622
commit 0237b2257e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 6 deletions

View File

@ -1,5 +1,7 @@
name: "bulk quest import"
on:
schedule:
- cron: '0 10 * * *' # UTC time, that's 5:00 am EST, 2:00 am PST.
workflow_dispatch:
inputs:
reason:
@ -11,7 +13,6 @@ jobs:
bulk-import:
runs-on: ubuntu-latest
permissions:
contents: write
issues: write
steps:
@ -21,7 +22,6 @@ jobs:
echo "Reason: ${{ github.event.inputs.reason }}"
- name: bulk-sequester
if: ${{ github.event_name == 'workflow_dispatch' }}
id: bulk-sequester
uses: dotnet/docs-tools/actions/sequester@main
env:

View File

@ -1,8 +1,5 @@
name: "quest import"
on:
issues:
types:
[ labeled, closed, reopened, assigned, unassigned ]
workflow_dispatch:
inputs:
reason:
@ -23,7 +20,6 @@ jobs:
contains(github.event.issue.labels.*.name, 'seQUESTered')
runs-on: ubuntu-latest
permissions:
contents: write
issues: write
steps: