From 5e666368e83a7afcb1a33f5f66550591d58e19bc Mon Sep 17 00:00:00 2001 From: Joey Schoblaska Date: Fri, 17 May 2024 14:08:26 -0500 Subject: [PATCH] run the "stale" and "traige" workflows from rubyatscale/shared-config (#48) * run the actions/stale workflow defined in shared-config nightly * add action to call shared-config triage workflow for new issues * update CI config to only run on "push" events for main * inherit secrets for ci config --- .github/workflows/ci.yml | 7 ++++++- .github/workflows/stale.yml | 8 ++++++++ .github/workflows/triage.yml | 9 +++++++++ 3 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/stale.yml create mode 100644 .github/workflows/triage.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6e89779..c1178ca 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,7 +1,12 @@ name: CI -on: [push, pull_request] +on: + push: + branches: + - main + pull_request: jobs: call-workflow-from-shared-config: uses: rubyatscale/shared-config/.github/workflows/ci.yml@main + secrets: inherit diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml new file mode 100644 index 0000000..0287d52 --- /dev/null +++ b/.github/workflows/stale.yml @@ -0,0 +1,8 @@ +name: 'Close stale issues and PRs' + +on: + schedule: + - cron: '0 0 * * *' +jobs: + call-workflow-from-shared-config: + uses: rubyatscale/shared-config/.github/workflows/stale.yml@main diff --git a/.github/workflows/triage.yml b/.github/workflows/triage.yml new file mode 100644 index 0000000..74bb1d9 --- /dev/null +++ b/.github/workflows/triage.yml @@ -0,0 +1,9 @@ +name: Label issues as "triage" + +on: + issues: + types: + - opened +jobs: + call-workflow-from-shared-config: + uses: rubyatscale/shared-config/.github/workflows/triage.yml@main