mirror of
https://github.com/ditkrg/build-image-workflow.git
synced 2026-01-22 23:27:06 +00:00
Refactor variable assignment in action.yml
Signed-off-by: Shakar Bakr <5h4k4r.b4kr@gmail.com>
This commit is contained in:
parent
042365ed11
commit
4d412de570
@ -81,7 +81,7 @@ runs:
|
|||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
# Define an array of strings
|
# Define an array of strings
|
||||||
my_array=${{ steps.meta.outputs.tags }}
|
my_array=$tags
|
||||||
|
|
||||||
# Specify the index you want to extract
|
# Specify the index you want to extract
|
||||||
index_to_extract=0
|
index_to_extract=0
|
||||||
@ -93,3 +93,5 @@ runs:
|
|||||||
|
|
||||||
|
|
||||||
echo "tag=$extracted_element" >> $GITHUB_OUTPUT
|
echo "tag=$extracted_element" >> $GITHUB_OUTPUT
|
||||||
|
env:
|
||||||
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user