From 8083218dd01b34019fabe51d70bb6711167153c9 Mon Sep 17 00:00:00 2001 From: Joey Schoblaska Date: Tue, 28 May 2024 12:31:05 -0500 Subject: [PATCH] update ci; add shared stale and triage workflows (#46) secrets: inherit is needed in CI for the Slack notification that triggers on failure --- .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