summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Molakvoæ <skjnldsv@users.noreply.github.com>2022-10-15 14:33:03 +0200
committerGitHub <noreply@github.com>2022-10-15 14:33:03 +0200
commit60896208052185718400d68f1543f99964cc2cec (patch)
tree9344e149f90ee216c06dd9ad188265b8a45a4ab1
parent07cd3531a5dc2da54dce6b7189299a16a12e96c0 (diff)
parent2192c2798ad5a1f1aaea502baea149a37526c652 (diff)
Merge pull request #1359 from nextcloud/feat/workflow-auto-update-lint-stylelint.yml
Updating lint-stylelint.yml workflow from template
-rw-r--r--.github/workflows/lint-stylelint.yml20
1 files changed, 11 insertions, 9 deletions
diff --git a/.github/workflows/lint-stylelint.yml b/.github/workflows/lint-stylelint.yml
index 64edcfba..17b7aebb 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 }}