Skip to content

Conversation

@mandel-macaque
Copy link
Member

@mandel-macaque mandel-macaque commented Jan 17, 2023

tldr; The action will send an event to the sdk-insertions repository that will do the correct steps to bump the version of the android project to be used in the unified pipeline.

Details

The idea is as follows:

The action will get the information of an update branch, that is sent to the sdk-insertions repo using a client payload via a repository dispatch (https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#repository_dispatch). That event with the payload is the parsed by a second action in the sdk-insertions repo and the needed yaml files are updated. This allow to have the unified pipeline build the latest commits of the SDKs without a manual trigger.

More details can be found here: https://github.com/xamarin/sdk-insertions/wiki/Unified-pipeline#github-actions

Because there is no way to run an action without a merge, please refer to the exact same one in the xamarin-macios repo: https://github.com/xamarin/xamarin-macios/actions/runs/3941098858

…eline.

The action will send an event to the sdk-insertions repository that will
do the correct steps to bump the version of the android project to be
used in the unified pipeline.
@jonpryor
Copy link
Contributor

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Comment on lines +7 to +8
- main
- 'release/**'
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pjcollins thans for this change

@jonpryor
Copy link
Contributor

Context: https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions
Context: https://github.com/xamarin/sdk-insertions/wiki/Unified-pipeline#github-actions

Add a GitHub Actions Workflow in
`.github/workflows/sdk-insertion-bump.yml` which is run when new
commits are made to the `main` and `release/**` branches.

The GitHub Action will get the information of the updated branch and
send that commit informtaion to the xamarin/sdk-insertions repo using
a client payload via [`repository_dispatch`][0].  The event with the
payload is the parsed by
[xamarin/sdk-insertions/.github/workflows/sdk-bump.yml][1], which
updates various YAML files for the [unified insetion pipeline][2].
This allow to have the unified pipeline build the latest commits of
the SDKs without a manual trigger.

Co-authored-by: Peter Collins <pecolli@microsoft.com>

[0]: https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#repository_dispatch
[1]: https://github.com/xamarin/sdk-insertions/blob/85976c35520b21cbde62a9412c8525ac2a5f4b84/.github/workflows/sdk-bump.yml
[2]: https://github.com/xamarin/sdk-insertions/wiki/Unified-pipeline#requirements

@jonpryor jonpryor merged commit 7dbbe17 into main Jan 19, 2023
@jonpryor jonpryor deleted the dev/mandel/sdk-insertions-bump branch January 19, 2023 19:03
@pjcollins
Copy link
Member

grendello added a commit to grendello/xamarin-android that referenced this pull request Jan 26, 2023
* main: (32 commits)
  [monodroid] Replace `exit()` with `abort()` in native code (dotnet#7734)
  Bump to xamarin/Java.Interop/main@8a1ae57 (dotnet#7738)
  [build] bump `$(AndroidNet7Version)` (dotnet#7737)
  Bump to xamarin/Java.Interop/main@1366d99 (dotnet#7718)
  [Xamarin.Android.Build.Tasks] fix AndroidGenerateResourceDesigner (dotnet#7721)
  Bump to xamarin/monodroid@50faac94 (dotnet#7725)
  Revert "[Xamarin.Android.Build.Tasks] fix cases of missing `@(Reference)` (dotnet#7642)" (dotnet#7726)
  [marshal methods] Properly support arrays of arrays (dotnet#7707)
  Bump to dotnet/installer@9962c6a 8.0.100-alpha.1.23063.11 (dotnet#7677)
  [Actions] Add action to bump the hash used for the unified pipeline (dotnet#7712)
  Bump to xamarin/xamarin-android-tools/main@099fd95 (dotnet#7709)
  [ci] Move build stages into yaml templates (dotnet#7553)
  [Xamarin.Android.Build.Tasks] fix NRE in `<GenerateResourceCaseMap/>` (dotnet#7716)
  [ci] Pass token when building Designer tests (dotnet#7715)
  [Mono.Android] Android.Telecom.InCallService.SetAudioRoute() + enum (dotnet#7711)
  [Mono.Android] Fix some incorrect enums. (dotnet#7670)
  [Xamarin.Android.Build.Tasks] _Microsoft.Android.Resource.Designer namespace (dotnet#7681)
  LEGO: Merge pull request 7713
  [Xamarin.Android.Build.Tasks] lazily populate Resource lookup (dotnet#7686)
  [Xamarin.Android.Build.Tasks] skip XA1034 logic in some cases (dotnet#7680)
  ...
grendello added a commit to grendello/xamarin-android that referenced this pull request Jan 30, 2023
* main:
  [marshal methods] Properly support arrays of arrays (dotnet#7707)
  Bump to dotnet/installer@9962c6a 8.0.100-alpha.1.23063.11 (dotnet#7677)
  [Actions] Add action to bump the hash used for the unified pipeline (dotnet#7712)
  Bump to xamarin/xamarin-android-tools/main@099fd95 (dotnet#7709)
  [ci] Move build stages into yaml templates (dotnet#7553)
  [Xamarin.Android.Build.Tasks] fix NRE in `<GenerateResourceCaseMap/>` (dotnet#7716)
  [ci] Pass token when building Designer tests (dotnet#7715)
pjcollins pushed a commit that referenced this pull request Mar 2, 2023
…7712)

Context: https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions
Context: https://github.com/xamarin/sdk-insertions/wiki/Unified-pipeline#github-actions

Add a GitHub Actions Workflow in
`.github/workflows/sdk-insertion-bump.yml` which is run when new
commits are made to the `main` and `release/**` branches.

The GitHub Action will get the information of the updated branch and
send that commit informtaion to the xamarin/sdk-insertions repo using
a client payload via [`repository_dispatch`][0].  The event with the
payload is the parsed by
[xamarin/sdk-insertions/.github/workflows/sdk-bump.yml][1], which
updates various YAML files for the [unified insetion pipeline][2].
This allow to have the unified pipeline build the latest commits of
the SDKs without a manual trigger.

Co-authored-by: Peter Collins <pecolli@microsoft.com>

[0]: https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#repository_dispatch
[1]: https://github.com/xamarin/sdk-insertions/blob/85976c35520b21cbde62a9412c8525ac2a5f4b84/.github/workflows/sdk-bump.yml
[2]: https://github.com/xamarin/sdk-insertions/wiki/Unified-pipeline#requirements
@github-actions github-actions bot locked and limited conversation to collaborators Jan 23, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants