-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a514a62
commit d473c61
Showing
6 changed files
with
44 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# Based on https://github.com/orgs/community/discussions/26323#discussioncomment-6749966 | ||
|
||
name: deploy-proxy | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
types: | ||
- closed | ||
|
||
defaults: | ||
run: | ||
# Enable fail-fast behavior | ||
shell: bash -e {0} | ||
|
||
jobs: | ||
emit: | ||
runs-on: ubuntu-latest | ||
# Only trigger on successful merge | ||
if: github.event_name == 'pull_request' && github.event.action == 'closed' && github.event.pull_request.merged == true | ||
steps: | ||
- uses: actions/github-script@v6 | ||
with: | ||
# Use "Fine-grained tokens (beta)", select the target repo, give read-write access to "Content" category. | ||
github-token: ${{ secrets.DEPLOY_PROXY_PAT }} | ||
script: | | ||
const result = await github.rest.repos.createDispatchEvent({ | ||
owner: 'rivet-gg', | ||
repo: 'rivet-ee', | ||
event_type: 'deploy_proxy', | ||
client_payload: { } | ||
}); | ||
console.log(result); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
# This is generated by Bolt. Do not modify. | ||
|
||
[workspace] | ||
resolver = "2" | ||
members = [ | ||
"api/admin", | ||
"api/auth", | ||
|