-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #869 from nextcloud/fix/node-unrelated
fix: Add workflow to ignore node ci when unrelated
- Loading branch information
Showing
1 changed file
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# This workflow is provided via the organization template repository | ||
# | ||
# https://github.com/nextcloud/.github | ||
# https://docs.github.com/en/actions/learn-github-actions/sharing-workflows-with-your-organization | ||
# | ||
# Use node together with node-when-unrelated to make eslint a required check for GitHub actions | ||
# https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/defining-the-mergeability-of-pull-requests/troubleshooting-required-status-checks#handling-skipped-but-required-checks | ||
|
||
name: Node | ||
|
||
on: | ||
pull_request: | ||
paths-ignore: | ||
- '.github/workflows/**' | ||
- 'src/**' | ||
- 'lib/**' | ||
- 'appinfo/info.xml' | ||
- 'package.json' | ||
- 'package-lock.json' | ||
- 'tsconfig.json' | ||
- '**.js' | ||
- '**.ts' | ||
- '**.vue' | ||
push: | ||
branches: | ||
- main | ||
- master | ||
- stable* | ||
|
||
concurrency: | ||
group: node-${{ github.head_ref || github.run_id }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
build: | ||
permissions: | ||
contents: none | ||
|
||
runs-on: ubuntu-latest | ||
|
||
name: node | ||
steps: | ||
- name: Skip | ||
run: 'echo "No JS/TS files changed, skipped Node"' |