Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions .github/workflows/release-request-weekly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,17 @@ jobs:
- name: Install Toys
run: "gem install --no-document toys -v 0.15.5"

- name: Create otelbot token
uses: actions/create-github-app-token@a8d616148505b5069dccd32f177bb87d7f39123b # v2.1.1
id: otelbot-token
- name: Create otelbot app token
uses: actions/[email protected]
id: app-token
with:
app-id: ${{ vars.OTELBOT_APP_ID }}
private-key: ${{ secrets.OTELBOT_PRIVATE_KEY }}
app-id: ${{ vars.OTELBOT_RUBY_CONTRIB_APP_ID }}
private-key: ${{ secrets.OTELBOT_RUBY_CONTRIB_PRIVATE_KEY }}

- name: Open release pull request
env:
GITHUB_TOKEN: ${{ steps.otelbot-token.outputs.token }}
# Using the 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 }}" \
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/release-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,16 @@ jobs:
- name: Install Toys
run: "gem install --no-document toys -v 0.15.5"

- name: Create otelbot token
uses: actions/create-github-app-token@a8d616148505b5069dccd32f177bb87d7f39123b # v2.1.1
id: otelbot-token
- name: Create otelbot app token
uses: actions/[email protected]
id: app-token
with:
app-id: ${{ vars.OTELBOT_APP_ID }}
private-key: ${{ secrets.OTELBOT_PRIVATE_KEY }}
app-id: ${{ vars.OTELBOT_RUBY_CONTRIB_APP_ID }}
private-key: ${{ secrets.OTELBOT_RUBY_CONTRIB_PRIVATE_KEY }}

- name: Open release pull request
env:
GITHUB_TOKEN: ${{ steps.otelbot-token.outputs.token }}
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
run: |
toys release request --yes --verbose \
"--gems=${{ github.event.inputs.gems }}" \
Expand Down
9 changes: 1 addition & 8 deletions .github/workflows/release-retry.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,9 @@ jobs:
- name: Install Toys
run: "gem install --no-document toys -v 0.15.5"

- name: Create otelbot token
uses: actions/create-github-app-token@a8d616148505b5069dccd32f177bb87d7f39123b # v2.1.1
id: otelbot-token
with:
app-id: ${{ vars.OTELBOT_APP_ID }}
private-key: ${{ secrets.OTELBOT_PRIVATE_KEY }}

- name: Retry release
env:
GITHUB_TOKEN: ${{ steps.otelbot-token.outputs.token }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
toys release retry --yes --verbose \
"--enable-releases=${{ secrets.ENABLE_RELEASES }}" \
Expand Down