Skip to content

Commit

Permalink
Merge pull request #4468 from nextcloud/ci/audit-fix-failure
Browse files Browse the repository at this point in the history
ci(audit): Do not create pull requests if npm audit fix fails
  • Loading branch information
mejo- committed Jul 10, 2023
2 parents 22f98c8 + 126a431 commit d271f85
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/npm-audit-fix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ jobs:
strategy:
fail-fast: false
matrix:
branches: ["main", "master", "stable27", "stable26", "stable25", "stable24"]
branches: ["main", "stable27", "stable26", "stable25", "stable24"]

name: npm-audit-fix-${{ matrix.branches }}

steps:
Expand Down Expand Up @@ -48,13 +48,11 @@ jobs:
npm audit fix
- name: Run npm ci and npm run build
if: always()
run: |
npm ci
npm run build --if-present
- name: Create Pull Request
if: always()
uses: peter-evans/create-pull-request@153407881ec5c347639a548ade7d8ad1d6740e38 # v5
with:
token: ${{ secrets.COMMAND_BOT_PAT }}
Expand Down

0 comments on commit d271f85

Please sign in to comment.