summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Molakvoæ <skjnldsv@users.noreply.github.com>2022-10-15 14:32:18 +0200
committerGitHub <noreply@github.com>2022-10-15 14:32:18 +0200
commit07cd3531a5dc2da54dce6b7189299a16a12e96c0 (patch)
treef6e6fe62e783f3e493af02564fe9cb3b6435c5a0
parent26a76efbd073967fcee55c4712b3f36ce8864b2b (diff)
parent3f750f1e567d540a15138f0951605bb2f43ae5dd (diff)
Merge pull request #1358 from nextcloud/feat/workflow-auto-update-lint-php.yml
Updating lint-php.yml workflow from template
-rw-r--r--.github/workflows/lint-php.yml12
1 files changed, 11 insertions, 1 deletions
diff --git a/.github/workflows/lint-php.yml b/.github/workflows/lint-php.yml
index 9cfb484e..62476c90 100644
--- a/.github/workflows/lint-php.yml
+++ b/.github/workflows/lint-php.yml
@@ -9,9 +9,17 @@ on:
pull_request:
push:
branches:
+ - main
- master
- stable*
+permissions:
+ contents: read
+
+concurrency:
+ group: lint-php-${{ github.head_ref || github.run_id }}
+ cancel-in-progress: true
+
jobs:
php-lint:
runs-on: ubuntu-latest
@@ -23,7 +31,7 @@ jobs:
steps:
- name: Checkout
- uses: actions/checkout@v2
+ uses: actions/checkout@v3
- name: Set up php ${{ matrix.php-versions }}
uses: shivammathur/setup-php@v2
@@ -35,6 +43,8 @@ jobs:
run: composer run lint
summary:
+ permissions:
+ contents: none
runs-on: ubuntu-latest
needs: php-lint