Skip to content
Merged
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
43 changes: 43 additions & 0 deletions .github/workflows/notify-rl360-prod-bump.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Notify RL360 of prod update

# When prod moves on this fork, fire a repository_dispatch into LLM360/RL360
# so the auto-bump workflow there can open a PR bumping the corresponding
# submodules/<this-repo>/ gitlink to the new prod HEAD.
#
# Auth: GitHub App llm360-deploy-bot (App ID in vars.DEPLOY_BOT_APP_ID,
# private key in secrets.DEPLOY_BOT_PRIVATE_KEY). App must be installed on
# both this repo and LLM360/RL360.

# This workflow never uses GITHUB_TOKEN: it authenticates as the
# llm360-deploy-bot App (private key) and dispatches via the resulting App
# installation token. Strip GITHUB_TOKEN to zero scopes.
permissions: {}

on:
push:
branches: [prod]

jobs:
dispatch:
runs-on: ubuntu-latest
steps:
- name: Mint App token for RL360
id: token
uses: actions/create-github-app-token@v1
with:
app-id: ${{ vars.DEPLOY_BOT_APP_ID }}
private-key: ${{ secrets.DEPLOY_BOT_PRIVATE_KEY }}
owner: LLM360
repositories: RL360

- name: Fire submodule-prod-updated dispatch
uses: peter-evans/repository-dispatch@v3
with:
token: ${{ steps.token.outputs.token }}
repository: LLM360/RL360
event-type: submodule-prod-updated
client-payload: |
{
"submodule": "${{ github.event.repository.name }}",
"sha": "${{ github.sha }}"
}
Comment thread
DavidBellamy marked this conversation as resolved.
Fixed
Loading