Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: David Fridrich <[email protected]>
  • Loading branch information
gauron99 committed Dec 11, 2024
1 parent 8a46104 commit 3eba6cc
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/manual-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ jobs:
runs-on: ubuntu-latest
outputs:
languages: ${{ steps.get-matrix.outputs.languages }}
language_paths: ${{ steps.get-matrix.outputs.language_paths }}
env:
FUNC_VERSION: "knative-v1.16.1"
steps:
Expand All @@ -27,21 +28,20 @@ jobs:
pwd
## NOTE: ls -d returns absolute path
## GITHUB_WORKSPACE is the root directory
#languages="{\"new\":["
languages+="$(ls -d ${GITHUB_WORKSPACE}/*/ | jq -R -s 'split("\n")[:-1]')"
#languages+="]}"
language_paths="$(ls -d ${GITHUB_WORKSPACE}/*/ | jq -R -s 'split("\n")[:-1]')"
languages="$(ls -d ${GITHUB_WORKSPACE}/*/ | basename | jq -R -s 'split("\n")[:-1]')"
echo "TO MATRIX:$languages"
echo language_paths=$language_paths >> $GITHUB_OUTPUT
echo languages=$languages >> $GITHUB_OUTPUT
deploy:
needs: prepare
runs-on: ubuntu-latest
strategy:
matrix:
#language: ${{ needs.prepare.outputs.languages }}
language: ${{ fromJSON(needs.prepare.outputs.languages) }}
language_path: ${{ fromJSON(needs.prepare.outputs.languages) }}
env:
ACTIONS_STEP_DEBUG: true
steps:
Expand All @@ -50,7 +50,7 @@ jobs:

- name: Build Functions
run: |
lang=$(basename "$lang_dir_abs")
lang=$(basename "${{matrix.language_path}}")
echo "Building funcs in language $lang"
for template_dir_abs in $(ls -d $lang_dir_abs*/); do
echo "ls -la"
Expand Down

0 comments on commit 3eba6cc

Please sign in to comment.