-
-
Notifications
You must be signed in to change notification settings - Fork 3
39 lines (39 loc) · 965 Bytes
/
test.yaml
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
---
name: test
on:
pull_request:
branches: [main]
push:
branches: [main]
jobs:
default:
timeout-minutes: 30
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./
- name: Test a single file
uses: ./
with:
config_file_path: renovate.json
- name: Test multiple files
uses: ./
with:
config_file_path: |
renovate.json
tests/renovate.json
- id: files
run: |
set -euo pipefail
files=$(git ls-files | grep renovate.json)
# https://stackoverflow.com/a/74232400
EOF=$(dd if=/dev/urandom bs=15 count=1 status=none | base64)
{
echo "files<<$EOF"
echo "$files"
echo "$EOF"
} >> "$GITHUB_OUTPUT"
- name: Pass files through output
uses: ./
with:
config_file_path: ${{ steps.files.outputs.files }}