Skip to content

Commit 53eb92b

Browse files
authored
use shared config for cd, stale, triage (#100)
* use shared config for cd, stale, triage * update ci workflow matrix rubies
1 parent 40afe76 commit 53eb92b

File tree

4 files changed

+24
-24
lines changed

4 files changed

+24
-24
lines changed

.github/workflows/cd.yml

Lines changed: 4 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,8 @@ on:
55
workflows: [CI]
66
types: [completed]
77
branches: [main]
8+
89
jobs:
9-
deploy:
10-
runs-on: ubuntu-latest
11-
if: ${{ github.event.workflow_run.conclusion == 'success' && github.event.workflow_run.event != 'schedule' }}
12-
steps:
13-
- uses: actions/checkout@v3
14-
- name: Tag and Push Gem
15-
id: tag-and-push-gem
16-
uses: discourse/publish-rubygems-action@v2
17-
env:
18-
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
19-
GIT_EMAIL: ${{secrets.GUSTO_GIT_EMAIL}}
20-
GIT_NAME: ${{secrets.GUSTO_GIT_EMAIL}}
21-
RUBYGEMS_API_KEY: ${{secrets.RUBYGEMS_API_KEY}}
22-
- name: Create GitHub Release
23-
run: gh release create v${{steps.tag-and-push-gem.outputs.gem_version}} --generate-notes
24-
if: ${{ steps.tag-and-push-gem.outputs.new_version == 'true' }}
25-
env:
26-
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
10+
call-workflow-from-shared-config:
11+
uses: rubyatscale/shared-config/.github/workflows/cd.yml@main
12+
secrets: inherit

.github/workflows/ci.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,16 @@ on:
55
branches:
66
- main
77
pull_request:
8-
schedule:
9-
- cron: "0 0 * * *"
108

119
jobs:
1210
rspec:
1311
runs-on: ubuntu-latest
1412
strategy:
1513
matrix:
1614
ruby:
17-
# See comment comes from https://github.com/ruby/setup-ruby#matrix-of-ruby-versions
18-
# Due to https://github.com/actions/runner/issues/849, we have to use quotes for '3.0'
19-
- "3.0"
2015
- 3.1
16+
- 3.2
17+
- 3.3
2118
env:
2219
BUNDLE_GEMFILE: Gemfile
2320
name: "RSpec tests: Ruby ${{ matrix.ruby }}"
@@ -39,7 +36,7 @@ jobs:
3936
uses: ruby/setup-ruby@v1
4037
with:
4138
bundler-cache: true
42-
ruby-version: 3.1
39+
ruby-version: 3.3
4340
- name: Run static type checks
4441
run: bundle exec srb tc
4542
notify_on_failure:

.github/workflows/stale.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
name: 'Close stale issues and PRs'
2+
3+
on:
4+
schedule:
5+
- cron: '0 0 * * *'
6+
jobs:
7+
call-workflow-from-shared-config:
8+
uses: rubyatscale/shared-config/.github/workflows/stale.yml@main

.github/workflows/triage.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
name: Label issues as "triage"
2+
3+
on:
4+
issues:
5+
types:
6+
- opened
7+
jobs:
8+
call-workflow-from-shared-config:
9+
uses: rubyatscale/shared-config/.github/workflows/triage.yml@main

0 commit comments

Comments
 (0)