From fe688b74d7c0ca78fb0352e5c856f9ef821ee308 Mon Sep 17 00:00:00 2001 From: Mike Alfare Date: Mon, 24 Jul 2023 16:55:33 -0400 Subject: [PATCH] update stale workflow to use centralized version --- .../Under the Hood-20230724-165508.yaml | 6 ++++++ .github/workflows/stale.yml | 17 +++++++---------- 2 files changed, 13 insertions(+), 10 deletions(-) create mode 100644 .changes/unreleased/Under the Hood-20230724-165508.yaml diff --git a/.changes/unreleased/Under the Hood-20230724-165508.yaml b/.changes/unreleased/Under the Hood-20230724-165508.yaml new file mode 100644 index 000000000..889484644 --- /dev/null +++ b/.changes/unreleased/Under the Hood-20230724-165508.yaml @@ -0,0 +1,6 @@ +kind: Under the Hood +body: Update stale workflow to use centralized version +time: 2023-07-24T16:55:08.096947-04:00 +custom: + Author: mikealfare + Issue: "842" diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index a56455d55..d902340a9 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -1,15 +1,12 @@ -name: 'Close stale issues and PRs' +name: "Close stale issues and PRs" on: schedule: - cron: "30 1 * * *" + +permissions: + issues: write + pull-requests: write + jobs: stale: - runs-on: ubuntu-latest - steps: - # pinned at v4 (https://github.com/actions/stale/releases/tag/v4.0.0) - - uses: actions/stale@cdf15f641adb27a71842045a94023bef6945e3aa - with: - stale-issue-message: "This issue has been marked as Stale because it has been open for 180 days with no activity. If you would like the issue to remain open, please remove the stale label or comment on the issue, or it will be closed in 7 days." - stale-pr-message: "This PR has been marked as Stale because it has been open for 180 days with no activity. If you would like the PR to remain open, please remove the stale label or comment on the PR, or it will be closed in 7 days." - # mark issues/PRs stale when they haven't seen activity in 180 days - days-before-stale: 180 + uses: dbt-labs/actions/.github/workflows/stale-bot-matrix.yml@main