Skip to content

Commit

Permalink
Fixup naming and produce valid JSON
Browse files Browse the repository at this point in the history
  • Loading branch information
kwk committed Feb 5, 2024
1 parent 2c30884 commit 6c24619
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/tmt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ permissions:
actions: write

jobs:
osversions:
get-os-versions-job:
runs-on: ubuntu-latest
container:
image: "fedora:rawhide"
outputs:
matrix: ${{ steps.osversions.outputs.osversions }}
matrix: ${{ steps.get-os-versions-step.outputs.os_versions }}
steps:
- uses: actions/checkout@v4

Expand All @@ -39,20 +39,20 @@ jobs:
run: |
dnf install -y copr-cli
- id: osversions
- id: get-os-versions-step
shell: bash -e {0}
run: |
source scripts/functions.sh
# Get OS versions comma separated with properly quoted rawhide
echo osversions=`get_os_versions | paste -sd "," - | sed 's/rawhide/"rawhide"/'` >> $GITHUB_OUTPUT
echo os_versions="[`get_os_versions | paste -sd "," - | sed 's/rawhide/\"rawhide\"/'`]" >> $GITHUB_OUTPUT
run-tmt:
needs: osversions
needs: get-os-versions-job
strategy:
fail-fast: false
matrix:
os: [fedora]
version: ${{ fromJSON(needs.osversions.outputs.osversions) }}
version: ${{ fromJSON(needs.get-os-versions-job.outputs.os_versions) }}
strategy: [standalone, big-merge, bootstrap]
include:
- strategy: standalone
Expand Down

0 comments on commit 6c24619

Please sign in to comment.