Skip to content

Commit d4bce2f

Browse files
authored
[Feature:Developer] Dispatch release updates to main repo (#32)
Adds workflow to update the main Submitty repository on release.
1 parent 0d00ecd commit d4bce2f

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.github/workflows/release.yml

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Release
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
dispatch-update:
9+
name: Dispatch Update
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: Submitty/[email protected]
13+
if: ${{ github.repository_owner == 'Submitty' }}
14+
with:
15+
event-type: repo-release
16+
token: ${{ secrets.SUBMITTYBOT_DEPENDENCY_TOKEN }}
17+
repository: ${{ github.repository_owner }}/Submitty
18+
client-payload: '{
19+
"repo_name": ${{ toJSON(github.event.repository.name) }},
20+
"repo": ${{ toJSON(github.event.repository.full_name) }},
21+
"tag": ${{ toJSON(github.event.release.tag_name) }}
22+
}'

0 commit comments

Comments
 (0)