Modify go.yml file

Signed-off-by: Sachin Sahu <75629410+SachinSahu431@users.noreply.github.com>
This commit is contained in:
Sachin Sahu 2024-04-02 13:10:47 +00:00
parent cd45345437
commit 1fc81cf736
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@ jobs:
- name: Read supported_go_versions.txt - name: Read supported_go_versions.txt
id: matrix id: matrix
run: | run: |
versions=$(head -n 3 supported_go_versions.txt) versions=$(cat supported_go_versions.txt)
matrix="[$(echo "$versions" | sed 's/\(.*\)/"\1"/' | paste -s -d,)]" matrix="[$(echo "$versions" | sed 's/\(.*\)/"\1"/' | paste -s -d,)]"
echo "supported_versions=$matrix" >> $GITHUB_OUTPUT echo "supported_versions=$matrix" >> $GITHUB_OUTPUT