Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Actions] Add action that will bump the hash used for the unified pipeline. #7712

Merged
merged 2 commits into from
Jan 19, 2023
Merged
Changes from 1 commit
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
34 changes: 34 additions & 0 deletions .github/workflows/sdk-insertion-bump.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
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-android", "branch": "${{ github.ref_name }}", "commit": "${{ github.sha }}", "commit_message": "${{ steps.commit_title.outputs.COMMIT_TITLE }}"}'