From 9ca72be91db1828abcb34993228fa6aba60d8e34 Mon Sep 17 00:00:00 2001 From: Marco Ebert Date: Thu, 25 Jul 2024 15:34:42 +0200 Subject: [PATCH] GitHub: Development. --- .github/workflows/release.yaml | 46 ++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 .github/workflows/release.yaml diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml new file mode 100644 index 000000000..04505ba3e --- /dev/null +++ b/.github/workflows/release.yaml @@ -0,0 +1,46 @@ +name: Release + +on: + push: + branches: + - liljx + +jobs: + get-releases: + name: Get releases + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v2 + - name: Get releases + id: get-releases + run: | + # Get releases. + releases="$(dirname azure/v*/release.yaml capa/v*/release.yaml)" + + # Convert releases into JSON. + releases="$(echo "${releases}" | jq --raw-input --slurp 'split("\n")[:-1]' --compact-output)" + + # Store releases. + echo releases="${releases}" >> "${GITHUB_OUTPUT}" + - name: Print releases + run: echo "${{ steps.get-releases.outputs.releases }}" + + outputs: + releases: ${{ steps.get-releases.outputs.releases }} + + print-release: + name: Print release + runs-on: ubuntu-latest + needs: get-releases + + strategy: + matrix: + release: ${{ fromJSON(needs.get-releases.outputs.releases) }} + + steps: + - name: Print release + env: + release: ${{ matrix.release }} + run: echo "${release}"