Skip to content

Commit 73f4992

Browse files
committed
github/workflows: Add workflow to trigger internal copybara
1 parent b6380df commit 73f4992

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Trigger Copybara
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
jobs:
9+
trigger-copybara:
10+
name: Trigger copybara workflow in modal-labs/modal
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Generate token for triggering workflow
14+
id: generate_token
15+
uses: tibdex/github-app-token@32691ba7c9e7063bd457bd8f2a5703138591fa58 # v1
16+
with:
17+
app_id: ${{ secrets.GH_PRBOT_APP_ID }}
18+
private_key: ${{ secrets.GH_PRBOT_APP_PRIVATE_KEY }}
19+
repository: modal-labs/modal
20+
21+
- name: Trigger copybara workflow
22+
env:
23+
GH_TOKEN: ${{ steps.generate_token.outputs.token }}
24+
run: |
25+
gh workflow run copybara.yaml \
26+
--repo modal-labs/modal \
27+
--ref main

0 commit comments

Comments
 (0)