Skip to content

Commit c0efa77

Browse files
committed
try with input
1 parent 181fd23 commit c0efa77

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/workflows/compute-workflow-parameters.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ name: "Compute workflow, scenarios and weblogs to run"
33
on:
44
workflow_call:
55
inputs:
6+
action_ref:
7+
description: ""
8+
default: ${{ github.action_ref }}
69
library:
710
description: "Library to run"
811
required: true
@@ -126,6 +129,10 @@ jobs:
126129
cat > current_ref/action.yaml << EOF
127130
name: Get_ref
128131
description: "Gets system tests ref"
132+
inputs:
133+
action_ref:
134+
description: ""
135+
default: ${{ '\${{ github.action_ref }}' }}
129136
outputs:
130137
ref:
131138
description: "System tests ref"
@@ -138,8 +145,9 @@ jobs:
138145
id: extract
139146
shell: bash
140147
run: |
141-
echo "ref=${{ '\${{ github.action_path }}' }}" >> \$GITHUB_OUTPUT
142-
echo "path=${{ '\${{ github.action_ref }}' }}" >> \$GITHUB_OUTPUT
148+
echo "input=${{ inputs.action_ref }}" >> \$GITHUB_OUTPUT
149+
echo "path=${{ '\${{ github.action_path }}' }}" >> \$GITHUB_OUTPUT
150+
echo "ref=${{ '\${{ inputs.action_ref }}' }}" >> \$GITHUB_OUTPUT
143151
EOF
144152
cat current_ref/action.yaml
145153
- name: Current ref

0 commit comments

Comments
 (0)