Skip to content

Commit

Permalink
fix: matrix format for workflow strategy
Browse files Browse the repository at this point in the history
  • Loading branch information
mihai-sysbio committed Mar 6, 2023
1 parent 861ea55 commit fb78a76
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ jobs:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
strategy:
fail-fast: false
matrix: ${{ needs.setup.outputs.matrix }}
matrix:
gem: ${{ fromJSON(needs.setup.outputs.matrix) }}
max-parallel: 1

steps:
Expand Down
4 changes: 2 additions & 2 deletions runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ def releases(nameWithOwner):
return release_tags + additional_branch_tags

def matrix():
m = list(map(lambda g: { 'gem': g }, gem_repositories()))
print(json.dumps({"include": m }))
m = json.dumps(list(gem_repositories()))
print(m)

def gem_follows_standard(nameWithOwner, release, version):
repo_standard = requests.get('https://raw.githubusercontent.com/{}/{}/.standard-GEM.md'.format(nameWithOwner, release))
Expand Down

0 comments on commit fb78a76

Please sign in to comment.