Skip to content

Commit 660ea02

Browse files
authored
Fix yaml parse (#11)
* Fix yaml parse * Fix steps naming
1 parent 8026082 commit 660ea02

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

action.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -117,11 +117,10 @@ runs:
117117
path: 'github'
118118
token: "${{ inputs.token }}"
119119

120-
- uses: actions-tools/yaml-outputs@49506207f91d468273fd5e73fbd18d6d2d9df9b1
121-
id: config
120+
- uses: mikefarah/yq@557dcb87b8efe786f89a12c09e9046b4753ab72e
121+
id: name
122122
with:
123-
file-path: 'README.yaml'
124-
fail-on-file-not-found: false
123+
cmd: yq '.name' 'README.yaml'
125124

126125
- name: Symlink ${{github.workspace}} to `github/`
127126
if: steps.metadata.outputs.repository_name == '.github'
@@ -133,7 +132,7 @@ runs:
133132
id: meta
134133
uses: actions/github-script@v7
135134
env:
136-
README_NAME: ${{steps.config.outputs.name}}
135+
README_NAME: ${{steps.name.outputs.result}}
137136
REPOSITORY_NAME: ${{ steps.metadata.outputs.repository_name }}
138137
REPOSITORY_DESCRIPTION: ${{ steps.metadata.outputs.repository_description }}
139138
with:

0 commit comments

Comments
 (0)