-
Notifications
You must be signed in to change notification settings - Fork 1
Add workflow to push store listings to Play Console #613
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
7 commits
Select commit
Hold shift + click to select a range
f34ecd7
Initial plan
Copilot e2d1bd3
Add mt-push-store-listing workflow
Copilot 005b5ea
Rename workflow to mt-store-listing-push.yml, remove fetch-depth
Copilot fe456b0
Merge remote-tracking branch 'origin/master' into copilot/add-workflo…
mmathieum 116072a
listing push >> --no-commit
mmathieum 3b1179e
cleanup
mmathieum d05ae6e
re-enable
mmathieum 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
60 changes: 60 additions & 0 deletions
60
shared-overwrite/.github/workflows/mt-store-listing-push.yml
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,60 @@ | ||
| # ORIGINAL FILE: https://github.com/mtransitapps/commons/tree/master/shared-overwrite | ||
| name: MT store listing > push | ||
| on: | ||
| push: | ||
| branches: | ||
| - master | ||
| paths: | ||
| - 'app-android/src/main/play/listings/**' | ||
| workflow_dispatch: # manual | ||
| inputs: | ||
| allowNonDefault: | ||
| description: 'Allow running on non-default branch' | ||
| type: boolean | ||
| default: false | ||
| required: false | ||
| # gh workflow run mt-store-listing-push.yml | ||
| # gh workflow run mt-store-listing-push.yml --ref $(git rev-parse --abbrev-ref HEAD) -f allowNonDefault=true | ||
| # gh run list --workflow=mt-store-listing-push.yml | ||
| # gh run watch ; gh browse --branch $(git rev-parse --abbrev-ref HEAD) | ||
| concurrency: | ||
| group: ${{ github.workflow }}-${{ github.ref }} | ||
| cancel-in-progress: true | ||
| env: | ||
| # git branches & sha | ||
| MT_SHA: ${{ github.event.pull_request.head.sha || github.sha }} | ||
| MT_BRANCH_NAME: ${{ github.head_ref || github.ref_name }} | ||
| MT_TARGET_BRANCH_NAME: ${{ github.base_ref || github.ref_name }} | ||
| MT_DEFAULT_BRANCH_NAME: ${{ github.event.repository.default_branch }} | ||
| # repo type | ||
| MT_IS_SUBMODULE: ${{ contains(fromJSON('["mtransitapps/commons", "mtransitapps/commons-java", "mtransitapps/parser", "mtransitapps/commons-android"]'), github.repository) }} | ||
| MT_IS_MAIN_REPO: ${{ endsWith(github.repository, '/mtransit-for-android') }} | ||
| MT_IS_AGENCY_REPO: ${{ ! contains(fromJSON('["mtransitapps/commons", "mtransitapps/commons-java", "mtransitapps/parser", "mtransitapps/commons-android"]'), github.repository) && ! endsWith(github.repository, '/mtransit-for-android')}} | ||
| MT_IS_AGENCY_RDS: ${{ ! contains(github.repository, '-bike-') }} | ||
| MT_IS_AGENCY_BIKE: ${{ contains(github.repository, '-bike-') }} | ||
| # push to store | ||
| MT_ORG_PUSH_STORE_ON: ${{ secrets.MT_ORG_PUSH_STORE_ON }} | ||
| MT_ORG_PUSH_STORE_OFF: ${{ secrets.MT_ORG_PUSH_STORE_OFF }} | ||
| MT_PUSH_STORE_ON: ${{ secrets.MT_PUSH_STORE_ON }} | ||
| MT_PUSH_STORE_OFF: ${{ secrets.MT_PUSH_STORE_OFF }} | ||
| jobs: | ||
| MT-STORE-LISTING-PUSH-JOB: | ||
| if: ${{ github.ref_name == github.event.repository.default_branch || github.event.inputs.allowNonDefault == 'true' }} | ||
| name: "MT Store Listing > Push" | ||
| timeout-minutes: 20 | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: MT check out main repository code | ||
| uses: actions/checkout@v6 | ||
| with: | ||
| token: ${{ secrets.MT_PAT }} | ||
|
|
||
| - name: MT setup | ||
| id: mt-setup | ||
| uses: ./.github/actions/setup | ||
|
|
||
| - name: MT push store listing | ||
| run: ./app-android/listing_push.sh | ||
| env: | ||
| GITHUB_TOKEN: ${{ secrets.MT_PAT }} | ||
| MT_ENCRYPT_KEY: ${{ secrets.MT_ENCRYPT_KEY }} |
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
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.