-
Notifications
You must be signed in to change notification settings - Fork 538
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
Conversation
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
…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.
pjcollins
approved these changes
Jan 19, 2023
jonathanpeppers
approved these changes
Jan 19, 2023
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
mandel-macaque
commented
Jan 19, 2023
Comment on lines
+7
to
+8
- main | ||
- 'release/**' |
There was a problem hiding this comment.
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
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 |
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
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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