Skip to content

Commit 1b0d284

Browse files
committed
Add GitHub workflows and dynamic document templates
1 parent e6bab0c commit 1b0d284

5 files changed

Lines changed: 73 additions & 0 deletions

File tree

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: update-templates
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
workflow_dispatch:
8+
9+
jobs:
10+
update-templates:
11+
permissions:
12+
contents: write
13+
pull-requests: write
14+
pages: write
15+
uses: thoughtbot/templates/.github/workflows/dynamic-readme.yaml@main
16+
secrets:
17+
token: ${{ secrets.GITHUB_TOKEN }}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: update-security
2+
3+
on:
4+
push:
5+
paths:
6+
- SECURITY.md
7+
branches:
8+
- main
9+
workflow_dispatch:
10+
11+
jobs:
12+
update-security:
13+
permissions:
14+
contents: write
15+
pull-requests: write
16+
pages: write
17+
uses: thoughtbot/templates/.github/workflows/dynamic-security.yaml@main
18+
secrets:
19+
token: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/main.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Ruby
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
name: Ruby ${{ matrix.ruby }}
13+
strategy:
14+
matrix:
15+
ruby:
16+
- '3.4'
17+
- '3.3'
18+
- '3.2'
19+
20+
steps:
21+
- uses: actions/checkout@v4
22+
with:
23+
persist-credentials: false
24+
- name: Set up Ruby
25+
uses: ruby/setup-ruby@v1
26+
with:
27+
ruby-version: ${{ matrix.ruby }}
28+
bundler-cache: true
29+
- name: Run tests
30+
run: bundle exec rake

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,7 @@ This gem follows the [OpenTelemetry GenAI Semantic Conventions](https://opentele
4747
Copyright (c) Clarissa Borges and thoughtbot, inc.
4848

4949
This gem is free software and may be redistributed under the terms specified in the [LICENSE](LICENSE) file.
50+
51+
<!-- START /templates/footer.md -->
52+
53+
<!-- END /templates/footer.md -->

SECURITY.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<!-- START /templates/security.md -->
2+
3+
<!-- END /templates/security.md -->

0 commit comments

Comments
 (0)