Skip to content

Commit

Permalink
encode json as string
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewrothstein committed Oct 24, 2023
1 parent 84ce1e0 commit ed8b33a
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 18 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ jobs:
prepare-matrix:
runs-on: ubuntu-latest
outputs:
dist: ${{ steps.read-matrix.outputs.dist }}
dist: ${{ steps.read-matrix.outputs }}
steps:
- uses: actions/checkout@v3
- name: read matrix.json
id: read-matrix
run: cat matrix.json >> $GITHUB_OUTPUT
run: jq '@json' < matrix.json >> $GITHUB_OUTPUT
build:
runs-on: ubuntu-latest
needs: [prepare-matrix]
Expand Down
30 changes: 14 additions & 16 deletions matrix.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
{
"dist" = [
{"OS": "alpine", "OS_VER": "3.17" },
{"OS": "alpine", "OS_VER": "3.18" },
{"OS": "alpine", "OS_VER": "edge" },
{"OS": "archlinux", "OS_VER": "latest" },
{"OS": "debian", "OS_VER": "bookworm" },
{"OS": "debian", "OS_VER": "bullseye" },
{"OS": "fedora", "OS_VER": "37" },
{"OS": "fedora", "OS_VER": "38" },
{"OS": "rockylinux", "OS_VER": "8" },
{"OS": "rockylinux", "OS_VER": "9" },
{"OS": "ubuntu", "OS_VER": "focal" },
{"OS": "ubuntu", "OS_VER": "jammy" }
]
}
[
{"OS": "alpine", "OS_VER": "3.17" },
{"OS": "alpine", "OS_VER": "3.18" },
{"OS": "alpine", "OS_VER": "edge" },
{"OS": "archlinux", "OS_VER": "latest" },
{"OS": "debian", "OS_VER": "bookworm" },
{"OS": "debian", "OS_VER": "bullseye" },
{"OS": "fedora", "OS_VER": "37" },
{"OS": "fedora", "OS_VER": "38" },
{"OS": "rockylinux", "OS_VER": "8" },
{"OS": "rockylinux", "OS_VER": "9" },
{"OS": "ubuntu", "OS_VER": "focal" },
{"OS": "ubuntu", "OS_VER": "jammy" }
]

0 comments on commit ed8b33a

Please sign in to comment.