From 0237b2257e45f0d8c4315091522ecef5ae390aef Mon Sep 17 00:00:00 2001 From: Bill Wagner Date: Thu, 9 Mar 2023 17:27:56 -0500 Subject: [PATCH] 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* --- .github/workflows/quest-bulk.yml | 4 ++-- .github/workflows/quest.yml | 4 ---- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/.github/workflows/quest-bulk.yml b/.github/workflows/quest-bulk.yml index 52c3c7ac68..acf1d8d290 100644 --- a/.github/workflows/quest-bulk.yml +++ b/.github/workflows/quest-bulk.yml @@ -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: diff --git a/.github/workflows/quest.yml b/.github/workflows/quest.yml index 8e9d2eedec..7c2467a612 100644 --- a/.github/workflows/quest.yml +++ b/.github/workflows/quest.yml @@ -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: