Skip to content

Commit

Permalink
ci: skip Google Play upload if running as Dependabot (#96)
Browse files Browse the repository at this point in the history
  • Loading branch information
boringcactus authored Mar 22, 2024
1 parent 73e8a4d commit 15bd59a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,13 @@ jobs:
echo "java-version=$VERSION" >> "$GITHUB_OUTPUT"
- name: Configure AWS Credentials
if: github.actor != 'dependabot[bot]'
uses: aws-actions/configure-aws-credentials@v4
with:
role-to-assume: ${{ secrets.AWS_ROLE_ARN }}
aws-region: us-east-1
- name: Configure GCP Credentials
if: github.actor != 'dependabot[bot]'
uses: google-github-actions/auth@v1
with:
create_credentials_file: true
Expand Down Expand Up @@ -101,21 +103,26 @@ jobs:
path: androidApp/build/reports

- name: Fetch AWS secrets
if: github.actor != 'dependabot[bot]'
uses: aws-actions/aws-secretsmanager-get-secrets@v1
with:
secret-ids: |
mobile-app-android-upload-key-passphrase
- name: Load code signing key
if: github.actor != 'dependabot[bot]'
run: |
cd androidApp
aws secretsmanager get-secret-value --secret-id mobile-app-android-upload-key --output json | jq -r '.SecretBinary' | base64 --decode > upload-keystore.jks
- name: Set up Ruby
if: github.actor != 'dependabot[bot]'
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
- name: Patch Fastlane to pick up application default credentials
if: github.actor != 'dependabot[bot]'
run: bin/patch-fastlane.sh
- name: Build and ${{ github.event_name == 'pull_request' && 'validate on' || 'upload to' }} Google Play
if: github.actor != 'dependabot[bot]'
env:
KEYSTORE_FILE: "${{ github.workspace }}/androidApp/upload-keystore.jks"
KEYSTORE_PASSWORD: ${{ env.MOBILE_APP_ANDROID_UPLOAD_KEY_PASSPHRASE }}
Expand Down

0 comments on commit 15bd59a

Please sign in to comment.