Skip to content

Commit 2a11db8

Browse files
committed
switch how the template file is read in
Signed-off-by: Andrew Brandt <[email protected]>
1 parent b34f5e0 commit 2a11db8

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

action.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,14 +91,15 @@ runs:
9191
run: |
9292
ORG_NAME=$(cat org-name.txt)
9393
94+
TEMPLATE=$(cat ${{ inputs.template }})
95+
9496
{
9597
echo "org: $ORG_NAME"
9698
echo "repositories:"
97-
jq -r --argfile template ${{ inputs.template }} '
99+
jq -r --argjson fields "$TEMPLATE" '
98100
to_entries[] |
99101
.key as $repoName |
100102
.value as $props |
101-
$template as $fields |
102103
(
103104
" - name: \($repoName)\n" +
104105
(
@@ -119,6 +120,7 @@ runs:
119120
echo "YAML written to repo-properties.yaml"
120121
121122

123+
122124

123125
- name: Print out the repo-properties.yaml
124126
shell: bash

0 commit comments

Comments
 (0)