build(deps-dev): Bump eslint-plugin-unicorn from 48.0.1 to 51.0.1 #23
Workflow file for this run
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: Dependabot post-update | |
on: | |
push: | |
branches: | |
- dependabot/npm_and_yarn/** | |
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 16.x | |
uses: actions/setup-node@v4.0.1 | |
with: | |
node-version: 16.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/github-app-token@v2.1.0 | |
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/github-push-action@v0.8.0 | |
if: steps.commit.outputs.diff | |
with: | |
github_token: ${{ steps.generate_token.outputs.token }} | |
branch: ${{ github.ref }} |