Skip to content

build(deps): bump @grpc/grpc-js from 1.8.21 to 1.8.22 in /functions (… #236

build(deps): bump @grpc/grpc-js from 1.8.21 to 1.8.22 in /functions (…

build(deps): bump @grpc/grpc-js from 1.8.21 to 1.8.22 in /functions (… #236

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