Skip to content

Commit

Permalink
chore(pipeline): fix google auth by giving correct permissions to job
Browse files Browse the repository at this point in the history
SUITEDEV-35352

Co-authored-by: megamegax <[email protected]>
Co-authored-by: Andras Sarro <[email protected]>
  • Loading branch information
3 people committed Mar 7, 2024
1 parent 4814f89 commit 7831353
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/nightly_e2e_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ jobs:
Build:
runs-on: ubuntu-latest
name: Build job
permissions:
contents: 'read'
id-token: 'write'
steps:
- uses: actions/checkout@v4
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release_sample_app_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ env:

jobs:
ReleaseSampleApp:
if: ${{ github.event.workflow_run.conclusion == 'success' }}
if: ${{ github.event.workflow_run.conclusion == 'success' || github.event_name == 'workflow_dispatch' }}
name: Release Sample App
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -69,7 +69,7 @@ jobs:
serviceAccountJson: ./sample/google-play-store-service-account.json
packageName: com.emarsys.sample
releaseFiles: sample/build/outputs/bundle/release/sample-release.aab
track: ${{ github.event.workflow_run.inputs.track }}
track: ${{ github.event.workflow_run.inputs.track != null && github.event.workflow_run.inputs.track || alpha }}

Report:
if: ${{ always() && github.event.workflow_run.conclusion == 'success' }}
Expand Down

0 comments on commit 7831353

Please sign in to comment.