Skip to content

build(deps-dev): bump react-router-dom from 6.27.0 to 6.28.0 in /workspaces/upptime #372

build(deps-dev): bump react-router-dom from 6.27.0 to 6.28.0 in /workspaces/upptime

build(deps-dev): bump react-router-dom from 6.27.0 to 6.28.0 in /workspaces/upptime #372

name: Automate Dependabot changeset
on:
pull_request_target:
paths:
- ".github/workflows/automate_dependabot_changeset.yml"
- "**/yarn.lock"
jobs:
generate-changeset:
runs-on: ubuntu-latest
if: github.actor == 'dependabot[bot]' && github.repository == 'philips-software/philips-backstage-plugins'
steps:
- name: Harden Runner
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
with:
egress-policy: audit
- uses: actions/create-github-app-token@v1
id: app-token
with:
app-id: ${{ secrets.BACKSTAGE_BOT_APPLICATION_ID }}
private-key: ${{ secrets.BACKSTAGE_BOT_PRIVATE_KEY }}
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
fetch-depth: 2
ref: ${{ github.head_ref }}
token: ${{ steps.app-token.outputs.token }}
- name: Configure Git
run: |
git config --global user.email [email protected]
git config --global user.name 'Github changeset workflow'
- name: Set up Node
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4
with:
node-version: 20
- name: Fetch previous commit for check
run: git fetch origin '${{ github.event.pull_request.base.sha }}'
- name: Find changed workspaces
id: find-changed-workspaces
run: node ./scripts/ci/list-workspaces-with-changes.js
env:
COMMIT_SHA_BEFORE: "${{ github.event.pull_request.base.sha }}"
- name: Generate feedback
uses: philips-software/backstage-actions/renovate-changesets@main
with:
multiple-workspaces: true
dependency-manager: dependabot
- name: Remove lockfile duplicates
run: node ./scripts/ci/yarn-dedupe-workspace.js '${{ steps.find-changed-workspaces.outputs.workspaces }}'
- name: Commit Lockfile Changes
run: |
# Check for changes
if ! git diff-index --quiet HEAD --; then
git commit -am "Automated de-duplication of lockfile"
git push
else
echo "No changes to commit."
fi