Skip to content

chore(deps-dev): Bump braces from 3.0.2 to 3.0.3 #227

chore(deps-dev): Bump braces from 3.0.2 to 3.0.3

chore(deps-dev): Bump braces from 3.0.2 to 3.0.3 #227

name: Dependabot post-update
on:
push:
branches:
- dependabot/npm_and_yarn/**
- updatecli_master_**
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
post-update:
if: ${{ github.actor == 'dependabot[bot]' }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
persist-credentials: false
fetch-depth: 0
- name: Set Node.js 20.x
uses: actions/[email protected]
with:
node-version: 20.x
cache: npm
- name: Install dependencies
run: npm ci
- name: Rebuild the dist/ directory
run: npm run prepare
- name: git commit dist/
id: commit
run: |
if [ "$(git diff --ignore-space-at-eol dist/ | wc -l)" -eq "0" ]; then
echo "❎ no changes to dist"
echo "::set-output name=diff::false"
exit 0
fi
git add dist/
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git commit -m "Apply dist changes"
echo "::set-output name=diff::true"
echo "💾 commited dist/ changes"
- uses: tibdex/[email protected]
id: generate_token
if: steps.commit.outputs.diff
with:
app_id: ${{ secrets.UPDATECLIBOT_APP_ID }}
private_key: ${{ secrets.UPDATECLIBOT_APP_PRIVKEY }}
- name: Push changes
uses: ad-m/[email protected]
if: steps.commit.outputs.diff
with:
github_token: ${{ steps.generate_token.outputs.token }}
branch: ${{ github.ref }}