diff options
author | Joas Schilling <213943+nickvergessen@users.noreply.github.com> | 2022-10-17 18:00:32 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-17 18:00:32 +0300 |
commit | 3ea1300e3ac6f3952f6853e8d13e764e8a135db7 (patch) | |
tree | fdaa7d69368f72d39501840f69e2240bf21fbe46 | |
parent | 63daaed23104909d3392ff3a5778092d37c964d7 (diff) | |
parent | b08d3aa35b2da558c131a52721b2eefdb5840dab (diff) |
Merge pull request #547 from nextcloud/feat/workflow-auto-update-dependabot-approve-merge.yml
Updating dependabot-approve-merge.yml workflow from template
-rw-r--r-- | .github/workflows/dependabot-approve-merge.yml | 6 | ||||
-rw-r--r-- | .github/workflows/lint-eslint.yml | 15 | ||||
-rw-r--r-- | .github/workflows/lint-info-xml.yml | 11 | ||||
-rw-r--r-- | .github/workflows/lint-php-cs.yml | 18 | ||||
-rw-r--r-- | .github/workflows/lint-php.yml | 18 | ||||
-rw-r--r-- | .github/workflows/lint-stylelint.yml | 20 | ||||
-rw-r--r-- | .github/workflows/node.yml | 12 | ||||
-rw-r--r-- | .github/workflows/phpunit.yml | 11 | ||||
-rw-r--r-- | .github/workflows/psalm.yml | 12 |
9 files changed, 65 insertions, 58 deletions
diff --git a/.github/workflows/dependabot-approve-merge.yml b/.github/workflows/dependabot-approve-merge.yml index 0d6e343..0a3e4d7 100644 --- a/.github/workflows/dependabot-approve-merge.yml +++ b/.github/workflows/dependabot-approve-merge.yml @@ -15,13 +15,17 @@ on: permissions: contents: read +concurrency: + group: dependabot-approve-merge-${{ github.head_ref || github.run_id }} + cancel-in-progress: true + jobs: auto-approve-merge: if: github.actor == 'dependabot[bot]' runs-on: ubuntu-latest permissions: # for hmarr/auto-approve-action to approve PRs - pull-requests: write + pull-requests: write steps: # Github actions bot approve diff --git a/.github/workflows/lint-eslint.yml b/.github/workflows/lint-eslint.yml index 5f48fb5..6874677 100644 --- a/.github/workflows/lint-eslint.yml +++ b/.github/workflows/lint-eslint.yml @@ -5,13 +5,14 @@ name: Lint -on: - pull_request: - push: - branches: - - main - - master - - stable* +on: pull_request + +permissions: + contents: read + +concurrency: + group: lint-eslint-${{ github.head_ref || github.run_id }} + cancel-in-progress: true jobs: lint: diff --git a/.github/workflows/lint-info-xml.yml b/.github/workflows/lint-info-xml.yml index cea2a2b..343ba44 100644 --- a/.github/workflows/lint-info-xml.yml +++ b/.github/workflows/lint-info-xml.yml @@ -5,12 +5,11 @@ name: Lint -on: - pull_request: - push: - branches: - - master - - stable* +on: pull_request + +concurrency: + group: lint-info-xml-${{ github.head_ref || github.run_id }} + cancel-in-progress: true jobs: xml-linters: diff --git a/.github/workflows/lint-php-cs.yml b/.github/workflows/lint-php-cs.yml index 9aad514..9f4bad1 100644 --- a/.github/workflows/lint-php-cs.yml +++ b/.github/workflows/lint-php-cs.yml @@ -5,12 +5,14 @@ name: Lint -on: - pull_request: - push: - branches: - - master - - stable* +on: pull_request + +permissions: + contents: read + +concurrency: + group: lint-php-cs-${{ github.head_ref || github.run_id }} + cancel-in-progress: true jobs: lint: @@ -20,9 +22,9 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - - name: Set up php ${{ matrix.php-versions }} + - name: Set up php uses: shivammathur/setup-php@v2 with: php-version: "7.4" diff --git a/.github/workflows/lint-php.yml b/.github/workflows/lint-php.yml index 9cfb484..0509e80 100644 --- a/.github/workflows/lint-php.yml +++ b/.github/workflows/lint-php.yml @@ -5,12 +5,14 @@ name: Lint -on: - pull_request: - push: - branches: - - master - - stable* +on: pull_request + +permissions: + contents: read + +concurrency: + group: lint-php-${{ github.head_ref || github.run_id }} + cancel-in-progress: true jobs: php-lint: @@ -23,7 +25,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 +37,8 @@ jobs: run: composer run lint summary: + permissions: + contents: none runs-on: ubuntu-latest needs: php-lint diff --git a/.github/workflows/lint-stylelint.yml b/.github/workflows/lint-stylelint.yml index 64edcfb..a1197f8 100644 --- a/.github/workflows/lint-stylelint.yml +++ b/.github/workflows/lint-stylelint.yml @@ -5,12 +5,14 @@ name: Lint -on: - pull_request: - push: - branches: - - master - - stable* +on: pull_request + +permissions: + contents: read + +concurrency: + group: lint-stylelint-${{ github.head_ref || github.run_id }} + cancel-in-progress: true jobs: lint: @@ -20,17 +22,17 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Read package.json node and npm engines version - uses: skjnldsv/read-package-engines-version-actions@v1.1 + uses: skjnldsv/read-package-engines-version-actions@v1.2 id: versions with: fallbackNode: '^12' fallbackNpm: '^6' - name: Set up node ${{ steps.versions.outputs.nodeVersion }} - uses: actions/setup-node@v2 + uses: actions/setup-node@v3 with: node-version: ${{ steps.versions.outputs.nodeVersion }} diff --git a/.github/workflows/node.yml b/.github/workflows/node.yml index 9150d1f..1584276 100644 --- a/.github/workflows/node.yml +++ b/.github/workflows/node.yml @@ -5,13 +5,11 @@ name: Node -on: - pull_request: - push: - branches: - - main - - master - - stable* +on: pull_request + +concurrency: + group: lint-node-${{ github.head_ref || github.run_id }} + cancel-in-progress: true permissions: contents: read diff --git a/.github/workflows/phpunit.yml b/.github/workflows/phpunit.yml index 8920996..4948d32 100644 --- a/.github/workflows/phpunit.yml +++ b/.github/workflows/phpunit.yml @@ -1,11 +1,10 @@ name: PHPUnit -on: - pull_request: - push: - branches: - - master - - stable* +on: pull_request + +concurrency: + group: lint-phpunit-${{ github.head_ref || github.run_id }} + cancel-in-progress: true env: APP_NAME: announcementcenter diff --git a/.github/workflows/psalm.yml b/.github/workflows/psalm.yml index eb1691a..a654235 100644 --- a/.github/workflows/psalm.yml +++ b/.github/workflows/psalm.yml @@ -5,13 +5,11 @@ name: Static analysis -on: - pull_request: - push: - branches: - - master - - main - - stable* +on: pull_request + +concurrency: + group: psalm-${{ github.head_ref || github.run_id }} + cancel-in-progress: true jobs: static-analysis: |