46 lines
1.3 KiB
YAML
46 lines
1.3 KiB
YAML
name: Sync Dependabot Bump
|
|
on:
|
|
pull_request:
|
|
types: [opened, synchronize]
|
|
|
|
permissions:
|
|
contents: write
|
|
|
|
jobs:
|
|
sync:
|
|
if: ${{ github.actor == 'dependabot[bot]' }}
|
|
name: Sync dependency files
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout Repository
|
|
uses: actions/checkout@v3
|
|
with:
|
|
ref: ${{ github.head_ref }}
|
|
- name: Setup Node.js ${{ matrix.node-version }}
|
|
uses: actions/setup-node@v3
|
|
with:
|
|
node-version: ${{ matrix.node-version }}
|
|
- name: Install dependencies
|
|
run: |
|
|
cd packages/core
|
|
npm i --workspaces=false --no-save
|
|
cd ../../scripts
|
|
npm i --workspaces=false --no-save
|
|
cd ../
|
|
env:
|
|
CI: true
|
|
- name: Run Sync Script
|
|
run: node ./scripts/sync-dependencies.mjs ${{ github.head_ref }}
|
|
- name: Reconfigure
|
|
run: node --experimental-json-modules --no-warnings ./scripts/reconfigure.mjs
|
|
- name: Bootstrap
|
|
run: yarn install
|
|
- name: Commit Changes
|
|
run: |
|
|
git add .
|
|
git status
|
|
git config user.name github-actions
|
|
git config user.email github-actions@github.com
|
|
git commit -m "[dependabot skip] chore(deps): bumped ${{ github.head_ref }} changes in config/dependencies.yaml"
|
|
git push
|