Skip to content

Commit

Permalink
Merge pull request #1117 from nextcloud/automated/update-workflows/de…
Browse files Browse the repository at this point in the history
…fault

chore: update workflows from templates
  • Loading branch information
Pytal authored Mar 15, 2024
2 parents fa58fd6 + 2e311cb commit 26df94d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 46 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/npm-audit-fix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,10 @@ jobs:
- name: Create Pull Request
if: always()
uses: peter-evans/create-pull-request@70a41aba780001da0a30141984ae2a0c95d8704e # v5
uses: peter-evans/create-pull-request@a4f52f8033a6168103c2538976c07b467e8163bc # v6.0.1
with:
token: ${{ secrets.COMMAND_BOT_PAT }}
commit-message: "chore(deps): fix npm audit"
commit-message: "fix(deps): fix npm audit"
committer: GitHub <[email protected]>
author: nextcloud-command <[email protected]>
signoff: true
Expand Down
45 changes: 2 additions & 43 deletions .github/workflows/psalm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,37 +12,10 @@ concurrency:
cancel-in-progress: true

jobs:
changes:
runs-on: ubuntu-latest-low

outputs:
src: ${{ steps.changes.outputs.src}}

steps:
- uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2
id: changes
continue-on-error: true
with:
filters: |
src:
- '.github/workflows/**'
- 'appinfo/**'
- 'lib/**'
- 'templates/**'
- 'tests/**'
- 'vendor/**'
- 'vendor-bin/**'
- '.php-cs-fixer.dist.php'
- 'composer.json'
- 'composer.lock'
psalm-static-analysis:
static-analysis:
runs-on: ubuntu-latest

needs: [changes]
if: needs.changes.outputs.src != 'false'

name: psalm-static-analysis
name: static-psalm-analysis
steps:
- name: Checkout
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2
Expand All @@ -66,17 +39,3 @@ jobs:

- name: Run coding standards check
run: composer run psalm

static-analysis:
permissions:
contents: none
runs-on: ubuntu-latest-low
needs: [changes, psalm-static-analysis]

if: always()

name: static-psalm-analysis

steps:
- name: Summary status
run: if ${{ needs.changes.outputs.src != 'false' && needs.psalm-static-analysis.result != 'success' }}; then exit 1; fi
2 changes: 1 addition & 1 deletion .github/workflows/update-nextcloud-ocp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ jobs:

- name: Create Pull Request
if: steps.checkout.outcome == 'success'
uses: peter-evans/create-pull-request@70a41aba780001da0a30141984ae2a0c95d8704e # v3
uses: peter-evans/create-pull-request@a4f52f8033a6168103c2538976c07b467e8163bc # v6.0.1
with:
token: ${{ secrets.COMMAND_BOT_PAT }}
commit-message: "chore(dev-deps): Bump nextcloud/ocp package"
Expand Down

0 comments on commit 26df94d

Please sign in to comment.