forked from EddieHubCommunity/BioDrop
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (30 loc) · 959 Bytes
/
data-filenames.yml
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
29
30
31
32
33
34
35
36
name: Data Filenames Check
on:
pull_request:
paths:
- "data/**"
jobs:
build:
runs-on: ubuntu-latest
name: Test changed-files
steps:
- uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: "18"
- name: Get changed files
id: changed-files
uses: tj-actions/[email protected]
- name: Get changed files between base & head
id: base-changed-files
uses: tj-actions/[email protected]
with:
base_sha: ${{ github.event.pull_request.head.sha }}
- name: Check changed files
env:
BASE_FILENAMES: ${{ steps.base-changed-files.outputs.all_changed_files }}
FILENAMES: ${{ steps.changed-files.outputs.all_changed_files }}
USERNAME: ${{ github.actor }}
run: |
node .github/scripts/check-filenames.js