chore(deps): update dependency io-ts to v2.2.22 (#6359) #877
This file contains 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
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/[email protected] | |
with: | |
secrets: |- | |
BOT_SSH_KEY:projects/1027349420744/secrets/BOT_SSH_PRIVATE_KEY | |
VALORA_BOT_TOKEN:projects/1027349420744/secrets/VALORA_BOT_TOKEN | |
- uses: webfactory/[email protected] | |
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}) |