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

CI - Trigger MaterialKolor Builder preview #220

Merged
merged 23 commits into from
Oct 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,4 @@ jobs:
run: ./gradlew lint --scan

- name: Upstream Tests
run: ./gradlew :mcu-upstream:test --scan
run: ./gradlew :mcu-upstream:test --scan
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
uses: gradle/actions/setup-gradle@v4

- name: Gradle Wrapper Validation
uses: gradle/wrapper-validation-action@v3
uses: gradle/actions/wrapper-validation@v3

- name: Deploy to Sonatype
run: |
Expand Down Expand Up @@ -83,7 +83,7 @@ jobs:
uses: gradle/actions/setup-gradle@v4

- name: Gradle Wrapper Validation
uses: gradle/wrapper-validation-action@v3
uses: gradle/actions/wrapper-validation@v3

- name: Generate documentation
run: ./gradlew dokkaHtmlMultiModule
Expand Down
33 changes: 33 additions & 0 deletions .github/workflows/trigger-mkb.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Trigger MKB Preview

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
trigger-upstream-preview:
name: Trigger MKB Build
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Get commit hash
id: get_commit_hash
run: echo "commit_hash=$(git rev-parse HEAD)" >> $GITHUB_OUTPUT

- name: Trigger upstream preview workflow
uses: peter-evans/repository-dispatch@v3
with:
token: ${{ secrets.MATERIALKOLOR_BUILDER_TRIGGER_TOKEN }}
repository: jordond/MaterialKolorBuilder
event-type: trigger-upstream-preview
client-payload: |
{
"commit_hash": "${{ steps.get_commit_hash.outputs.commit_hash }}",
"pr_number": "${{ github.event.pull_request.number || '' }}"
}
Loading