Skip to content

Commit 1a165b9

Browse files
committed
ci: fix the ci input paramaters to the final script
- set env variables, that get than used as input correctly
1 parent 5b35d13 commit 1a165b9

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

.github/actions/meson-format-action/action.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,8 @@ runs:
3636
- name: Run checker
3737
shell: bash
3838
id: meson-format-checker
39+
env:
40+
INPUT_FORMAT-FILE: ${{ inputs.format-file }}
41+
INPUT_ONLY-GIT-FILES: ${{ inputs.only-git-files }}
3942
run: |
4043
node "${{github.action_path}}/index.js"

.github/actions/meson-format-action/index.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,10 @@ async function main() {
151151
)
152152
}
153153

154+
//WIP
155+
core.error(`file input is: ${core.getInput('format-file', { required: false })}`)
156+
core.error(`git-file input is: ${core.getInput('only-git-files', { required: false })}`)
157+
154158
/** @type {string} */
155159
const formatFile = core.getInput('format-file', { required: false })
156160

0 commit comments

Comments
 (0)