forked from victoriadrake/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (34 loc) · 1020 Bytes
/
test_changes.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
name: Test changed installers
on:
push:
jobs:
list_installers:
name: List changed installers
runs-on: ubuntu-latest
outputs:
installers: ${{steps.dirs.outputs.changed_installers}}
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Get changed installer files
id: files
uses: tj-actions/changed-files@v44
with:
files: programs/**
- name: Get changed installer names
id: dirs
env:
CHANGED_FILES: ${{steps.files.outputs.all_changed_files}}
run: |
{
printf "changed_installers="
printf "%s" "$CHANGED_FILES" \
| cut -d/ -f2 | sort -u | jq -R | jq -s -c -M
} >> "$GITHUB_OUTPUT"
test_installers:
name: Test installers
needs: list_installers
if: needs.list_installers.outputs.installers != '[]'
uses: ./.github/workflows/test_installers.yml
with:
installers: ${{needs.list_installers.outputs.installers}}