Notify release branch change #29
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
name: Notify release branch change | |
on: push | |
jobs: | |
pingRemote: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Parse commit | |
shell: pwsh | |
id: commit_title | |
run: | | |
Write-Host "Commit message is $Env:COMMIT_MESSAGE" | |
$title = ($Env:COMMIT_MESSAGE -split '\n')[0] | ConvertTo-Json | |
"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 }} }' | |