0
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-08-04 10:39:43 +08:00
discourse/.github/workflows/dependabot-pnpm-dedupe.yml
dependabot[bot] d5c21891b4
DEPS: Bump actions/checkout from 6 to 7 (#41156)
Bumps [actions/checkout](https://github.com/actions/checkout) from 6 to
7.
- [Release notes](https://github.com/actions/checkout/releases)
-
[Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](https://github.com/actions/checkout/compare/v6...v7)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-06-24 21:54:51 +02:00

44 lines
1,008 B
YAML
Vendored

name: Pnpm dedupe on Dependabot PRs
on:
push:
branches:
- "dependabot/npm_and_yarn/**/*"
paths:
- "pnpm-lock.yaml"
permissions:
contents: write
jobs:
deduplicate:
name: Deduplicate
if: github.actor == 'dependabot[bot]'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
with:
fetch-depth: 1
token: ${{ secrets.GH_PUSH_TOKEN }}
- name: Set up pnpm
uses: pnpm/action-setup@v5
- name: Set up Node.js
uses: actions/setup-node@v6
with:
node-version: 22
- name: pnpm install
run: pnpm install --ignore-scripts --frozen-lockfile
- run: pnpm dedupe --ignore-scripts
- name: Git push
run: |
git config --global user.email "team@discourse.org"
git config --global user.name "discoursebot"
git add pnpm-lock.yaml
git status
git commit -m "pnpm dedupe [dependabot skip]" && git push || echo "done"