build(deps): bump @grpc/grpc-js from 1.8.21 to 1.8.22 in /functions (… #236
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: Init repository | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
init-repository: | |
name: Prepare repo after generation | |
runs-on: ubuntu-latest | |
if: startsWith(github.event.head_commit.message, 'Initial commit') | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Remove LICENSE and generate app ID | |
run: | | |
git config --local user.email 'action@github.com' | |
git config --local user.name 'GitHub Action' | |
rm ./LICENSE | |
rm ./.github/workflows/init-repository.yml | |
sed -i "s/9000/$(( 100000 + RANDOM % 800000 ))/g" ./functions/ecom.config.js | |
git commit -am "chore(init): remove default license and generate \`app_id\` [skip ci]" | |
- name: Push changes | |
uses: ad-m/github-push-action@master | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
branch: master |