Skip to content

chore(deps): update dependency react-native-video to ^6.6.4 (#6149) #836

chore(deps): update dependency react-native-video to ^6.6.4 (#6149)

chore(deps): update dependency react-native-video to ^6.6.4 (#6149) #836

name: Update Licenses and Disclaimer
on:
push:
# trigger only when the yarn.lock file is modified in main
branches:
- main
paths:
- 'yarn.lock'
jobs:
update-licenses-and-disclaimer:
runs-on: ubuntu-latest
permissions:
pull-requests: write
env:
BRANCH_NAME: valora-bot/update-licenses-disclaimer
steps:
- uses: google-github-actions/auth@v2
with:
project_id: celo-mobile-mainnet
credentials_json: ${{ secrets.MAINNET_SERVICE_ACCOUNT_KEY }}
- name: Google Secrets
id: google-secrets
uses: google-github-actions/get-secretmanager-secrets@v2.1.4
with:
secrets: |-
BOT_SSH_KEY:projects/1027349420744/secrets/BOT_SSH_PRIVATE_KEY
VALORA_BOT_TOKEN:projects/1027349420744/secrets/VALORA_BOT_TOKEN
- uses: webfactory/ssh-agent@v0.9.0
with:
ssh-private-key: ${{ steps.google-secrets.outputs.BOT_SSH_KEY }}
- uses: actions/checkout@v4
- uses: ./.github/actions/yarn-install
- run: yarn ts-node .github/scripts/createLicenseDisclaimerPr.ts
env:
VALORA_BOT_TOKEN: ${{ steps.google-secrets.outputs.VALORA_BOT_TOKEN }}
- uses: actions/github-script@v7
with:
script: |
const script = require('.github/scripts/autoApprovePr.js')
const allowedUpdatedFiles = ['src/account/LicenseDisclaimer.txt']
await script({github, context, core, allowedUpdatedFiles})
- uses: actions/github-script@v7
with:
github-token: ${{ steps.google-secrets.outputs.VALORA_BOT_TOKEN }}
script: |
const script = require('.github/scripts/enableAutomergeOnPr.js')
await script({github, context, core})