-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
28 lines (23 loc) · 935 Bytes
/
Copy pathnode-dist-unchanged.yml
File metadata and controls
28 lines (23 loc) · 935 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
# SPDX-FileCopyrightText: 2023-2024 Nextcloud GmbH and Nextcloud contributors
# SPDX-License-Identifier: AGPL-3.0-or-later
name: Check node dist files
on:
pull_request:
jobs:
changed_files:
runs-on: ubuntu-latest-low
name: Check node dist files
permissions:
pull-requests: read
steps:
- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@934b2d2c7e653bb8c968afed5a0428617f09aa24 # v45.0.7
with:
files: dist/**
- name: Run step if any file(s) in the dist folder change
if: steps.changed-files.outputs.any_changed == 'true'
run: |
echo "One or more files in the dist folder has changed. Do NOT commit files in there as they will be generated automatically once a pull request is merged"
echo "List all the files that have changed: ${{ steps.changed-files.outputs.all_changed_files }}"
exit 1