-
Notifications
You must be signed in to change notification settings - Fork 13
ci: fetch data plan on release build #46
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
Merged
Merged
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
d09d32f
Create .gitkeep
alexs-mparticle d749f13
Update release.yml
alexs-mparticle ca7b0fd
Add GPG Verification to Data Plan Commit
alexs-mparticle d0c0049
Update release.yml
alexs-mparticle 2dd2794
Create daily-cron.yml
alexs-mparticle 238b2cf
Update daily-cron.yml
alexs-mparticle 4c7eb1b
Update daily-cron.yml
alexs-mparticle fe2a99f
Update release.yml
alexs-mparticle cc13768
Update and rename daily-cron.yml to sync-data-plan.yml
alexs-mparticle 7af24eb
Update and rename sync-data-plan.yml to sync-higgs-shop-data-plan.yml
alexs-mparticle a7c1d30
Update sync-higgs-shop-data-plan.yml
alexs-mparticle d91758c
Update sync-higgs-shop-data-plan.yml
alexs-mparticle 78d928a
Update sync-higgs-shop-data-plan.yml
alexs-mparticle File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,66 @@ | ||
| name: Sync Higgs Shop Data Plan | ||
|
|
||
| on: [ workflow_dispatch ] | ||
|
|
||
| jobs: | ||
| fetch-data-plan: | ||
| name: Fetch Data Plan | ||
| uses: mParticle/mparticle-workflows/.github/workflows/data-plan-fetch.yml@stable | ||
| with: | ||
| data_plan_id: higgs_shop_basic_data_plan | ||
| data_plan_version: 1 | ||
| app_relative_path: core-sdk-samples/higgs-shop-sample-app | ||
| secrets: | ||
| WORKSPACE_ID: ${{ secrets.HIGGS_SHOP_WORKSPACE_ID }} | ||
| CLIENT_ID: ${{ secrets.HIGGS_SHOP_CLIENT_ID }} | ||
| CLIENT_SECRET: ${{ secrets.HIGGS_SHOP_CLIENT_SECRET }} | ||
|
|
||
|
|
||
| open-pull-request: | ||
| name: Open Pull Request for Data Plan | ||
| runs-on: ubuntu-latest | ||
| needs: fetch-data-plan | ||
| env: | ||
| GIT_AUTHOR_NAME: mparticle-bot | ||
| GIT_AUTHOR_EMAIL: developers@mparticle.com | ||
| GIT_COMMITTER_NAME: mparticle-bot | ||
| GIT_COMMITTER_EMAIL: developers@mparticle.com | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@v2 | ||
| with: | ||
| ref: development | ||
|
|
||
| - name: Download Data Plan Artifacts | ||
| uses: actions/download-artifact@v3 | ||
| with: | ||
| name: higgs-shop-dataplan | ||
| path: core-sdk-samples/higgs-shop-sample-app/dataplans | ||
|
|
||
| - name: "Import GPG Key" | ||
| uses: crazy-max/ghaction-import-gpg@v4 | ||
| with: | ||
| gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }} | ||
| passphrase: ${{ secrets.GPG_PASSPHRASE }} | ||
| git_user_signingkey: true | ||
| git_commit_gpgsign: true | ||
|
|
||
| - name: Create Commit if Data Plan Changed | ||
| uses: stefanzweifel/git-auto-commit-action@v4 | ||
| with: | ||
| commit_message: "chore: update Higgs Shop Data Plan" | ||
| branch: chore/data-plan-update-${{ github.run_number }} | ||
| create_branch: true | ||
| commit_user_name: mparticle-bot | ||
| commit_author_email: developers@mparticle.com | ||
| commit_author: mparticle-bot | ||
| file_pattern: core-sdk-samples/higgs-shop-sample-app/dataplans/* | ||
|
|
||
| - name: Open Pull Request | ||
| uses: vsoch/pull-request-action@1.0.19 | ||
| env: | ||
| GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} | ||
| PULL_REQUEST_BRANCH: development | ||
| PULL_REQUEST_FROM_BRANCH: chore/data-plan-update-${{ github.run_number }} | ||
| PULL_REQUEST_TITLE: "chore: update Higgs Shop Data Plan" | ||
| PULL_REQUEST_DRAFT: "Updating Higgs Shop Data Plan" | ||
This file contains hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
|
|
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.
Uh oh!
There was an error while loading. Please reload this page.