summaryrefslogtreecommitdiffstats
path: root/.github/workflows
diff options
context:
space:
mode:
authorNextcloud bot <bot@nextcloud.com>2022-10-15 13:39:15 +0000
committerNextcloud bot <bot@nextcloud.com>2022-10-15 13:39:15 +0000
commit9b8916457cdc59d78d28bb0d4804f964c652646c (patch)
treeff7255aff3783d2082c0496802597b6dc3e110cc /.github/workflows
parent9e0675257144f670bb56cba478caabd66a65b421 (diff)
downloadnextcloud-server-9b8916457cdc59d78d28bb0d4804f964c652646c.tar.gz
nextcloud-server-9b8916457cdc59d78d28bb0d4804f964c652646c.zip
Updating lint-eslint.yml workflow from template
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/lint-eslint.yml20
1 files changed, 11 insertions, 9 deletions
diff --git a/.github/workflows/lint-eslint.yml b/.github/workflows/lint-eslint.yml
index 11590ffb04a..c08763ea946 100644
--- a/.github/workflows/lint-eslint.yml
+++ b/.github/workflows/lint-eslint.yml
@@ -5,12 +5,14 @@
name: Lint
-on:
- pull_request:
- push:
- branches:
- - master
- - stable*
+on: pull_request
+
+permissions:
+ contents: read
+
+concurrency:
+ group: lint-eslint-${{ 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 }}