Skip to content

Commit 7c03550

Browse files
committed
Correct matrix setup
1 parent 2557144 commit 7c03550

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

.github/dependabot.yml

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
version: 2
2+
updates:
3+
# Enable updates for GitHub Actions
4+
- package-ecosystem: "github-actions"
5+
# Look for `.github/workflows` directory for GitHub Actions
6+
directory: "/"
7+
# Check the GitHub Actions weekly for updates
8+
schedule:
9+
interval: "weekly"

.github/workflows/weekly-scanner.yaml

+3-4
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,11 @@ jobs:
1111
outputs:
1212
matrix: ${{ steps.matrix.outputs.value }}
1313
steps:
14+
- name: Checkout code
15+
uses: actions/checkout@v2
1416
- id: matrix
1517
run: |
16-
echo "value=$(cat repositories.json)" >> $GITHUB_OUTPUT
18+
echo "value=$(jq -c < repositories.json | jq -R | sed -e 's/^"//' -e 's/"$//')" >> $GITHUB_OUTPUT
1719
- run: |
1820
echo "${{ steps.matrix.outputs.value }}"
1921
@@ -24,9 +26,6 @@ jobs:
2426
matrix:
2527
value: ${{fromJSON(needs.matrix-setup.outputs.matrix)}}
2628
steps:
27-
- name: Checkout code
28-
uses: actions/checkout@v2
29-
3029
- name: Set up Helm
3130
uses: azure/setup-helm@v1
3231

0 commit comments

Comments
 (0)