-
Notifications
You must be signed in to change notification settings - Fork 280
39 lines (36 loc) · 1.3 KB
/
release-request-weekly.yml
File metadata and controls
39 lines (36 loc) · 1.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Open release request - Weekly
on:
schedule:
- cron: "0 15 * * 2"
permissions:
contents: read
jobs:
release-request:
if: ${{ github.repository == 'open-telemetry/opentelemetry-ruby' }}
permissions:
contents: write # required for pushing changes
pull-requests: write # required for creating release PRs
runs-on: ubuntu-latest
steps:
- name: Install Ruby
uses: ruby/setup-ruby@09a7688d3b55cf0e976497ff046b70949eeaccfd # v1.288.0
with:
ruby-version: 3.1
- name: Checkout repo
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Install Toys
run: "gem install --no-document toys -v 0.15.5"
- name: Create otelbot app token
uses: actions/create-github-app-token@29824e69f54612133e76f7eaac726eef6c875baf # v2.2.1
id: app-token
with:
app-id: ${{ vars.OTELBOT_RUBY_APP_ID }}
private-key: ${{ secrets.OTELBOT_RUBY_PRIVATE_KEY }}
- name: Open release pull request
env:
# Use an app token instead of GITHUB_TOKEN to trigger workflows
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
run: |
toys release request --yes --verbose \
"--release-ref=${{ github.ref }}" \
< /dev/null