diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1d1f5d3..d59ffa8 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -3,13 +3,29 @@ on: pull_request: push: +defaults: + run: + shell: bash + jobs: + lookup-versions: + runs-on: ubuntu-latest + + outputs: + versions: ${{ steps.versions.outputs.versions }} + steps: + - uses: actions/checkout@v4 + - name: Get current versions + id: versions + run: | + echo "versions=$(python -c 'import glob, json; print(json.dumps(glob.glob("1.*")))')" >> $GITHUB_OUTPUT + build: runs-on: ubuntu-latest strategy: matrix: - version: ['1.39', '1.41', '1.42'] + version: ${{ fromJson(needs.lookup-versions.outputs.versions) }} type: [apache, fpm, fpm-alpine] steps: