Skip to content

Commit

Permalink
feature/github-action
Browse files Browse the repository at this point in the history
  • Loading branch information
Bill Wang committed Oct 22, 2024
1 parent 898d5c0 commit 7f407c7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,11 @@ jobs:
latest_version=$(echo "$releases" | grep "^$minor_version\." | sort -rV | head -1 | sed 's/v//')
latest_versions+=($latest_version)
done
echo ${latest_versions[@]}
# Convert to JSON array for matrix
TARGETS=${latest_versions[@]}
echo "versions=$(./jq -cn --argjson environments "$TARGETS" '{target: $environments}')" >> $GITHUB_OUTPUT
TARGETS=$(echo ${latest_versions[@]})
echo "versions=$(./jq -cn --arg environments "$TARGETS" '{target: $environments}')" >> $GITHUB_OUTPUT
echo $GITHUB_OUTPUT
build:
runs-on: ubuntu-latest
Expand All @@ -68,7 +68,7 @@ jobs:
pull-requests: write
strategy:
matrix:
versions: ${{ fromJson(needs.get-kubectl-versions.outputs.versions) }}
versions: ${{ fromJson(needs.get-kubectl-versions.outputs.versions) }}
steps:
- name: Setup Docker buildx
uses: docker/setup-buildx-action@v3
Expand Down

0 comments on commit 7f407c7

Please sign in to comment.