mirror of
https://github.com/nextcloud/server.git
synced 2026-10-19 06:19:36 +02:00
29 lines
935 B
YAML
29 lines
935 B
YAML
# 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
|