forked from SpikeInterface/spikeinterface
-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (49 loc) · 1.51 KB
/
issue-on-change-matlab.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: Check changed matlab files
on:
push:
branches:
- master
- changed-matlab-files
jobs:
check-matlab-changed:
name: Check changed files
runs-on: "ubuntu-latest"
outputs:
has_changed_files: ${{ steps.changed-files.outputs.any_changed }}
changed_files: ${{ steps.changed-files.outputs.all_changed_files }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v41
with:
files: |
**/*.m
create-issue:
name: Create Issue
needs: check-matlab-changed
if: needs.check-matlab-changed.outputs.has_changed_files == 'true'
runs-on: "ubuntu-latest"
permissions:
issues: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Parse files names
id: parse-files-names
run: |
for file in ${{ needs.check-matlab-changed.outputs.changed_files }}; do
# return (\n) characters: %0A
file_list+="%0A- \`${file}\`"
done
echo ${file_list}
echo "file_list=${file_list}" >> $GITHUB_OUTPUT
- name: Create new issue
uses: imjohnbo/issue-bot@v3
with:
title: Matlab file was changed
body: |-
This is a reminder issue.
Please recompile and rebuild image for the matlab-based sorters that uses the following changed files:
${{ steps.parse-files-names.outputs.file_list }}