forked from xamarin/xamarin-macios
-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (27 loc) · 1013 Bytes
/
sdk-insertion-bump.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: Notify release branch change
on:
# trigger for main and release branches.
push:
branches:
- '*'
jobs:
pingRemote:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Parse commit
shell: pwsh
id: commit_title
run: |
Write-Host "Commit message is $Env:COMMIT_MESSAGE"
$title = ($Env:COMMIT_MESSAGE -split '\n')[0]
"COMMIT_TITLE=$title" >> $env:GITHUB_OUTPUT
env:
COMMIT_MESSAGE: "${{ github.event.head_commit.message }}"
- name: 'Update remote repository'
uses: peter-evans/repository-dispatch@v2
with:
token: ${{ secrets.SERVICEACCOUNT_PAT }}
event-type: 'sdk_insertion'
repository: 'xamarin/sdk-insertions'
client-payload: '{"repository": "xamarin/xamarin-macios", "branch": "${{ github.ref_name }}", "commit": "${{ github.sha }}", "commit_message": "${{ steps.commit_title.outputs.COMMIT_TITLE }}"}'