diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 7159de0f3..89c86e7f7 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -36,6 +36,15 @@ updates: patterns: - "@xterm/*" + ignore: + # https://github.com/cockpit-project/cockpit/issues/21151 + - dependency-name: "sass" + versions: ["1.80.x", "2.x"] + + # needs to be done in Cockpit first + - dependency-name: "@patternfly/*" + update-types: ["version-update:semver-major"] + - package-ecosystem: "github-actions" directory: "/" open-pull-requests-limit: 3 diff --git a/.github/workflows/dependabot.yml b/.github/workflows/dependabot.yml index 0ab897577..eecf97fa7 100644 --- a/.github/workflows/dependabot.yml +++ b/.github/workflows/dependabot.yml @@ -41,6 +41,18 @@ jobs: } } + - name: Rebase pull request and drop node_modules changes + run: | + set -x + git config --global user.name "GitHub Workflow" + git config --global user.email "cockpituous@cockpit-project.org" + git fetch origin main:main + if ! git rebase main; then + git reset node_modules + GIT_EDITOR=true git rebase --continue + git show --stat + fi + - name: Update node_modules for package.json changes run: | make tools/node-modules