From ea344944a293383229e7a73c9a40c42c8ad9538f Mon Sep 17 00:00:00 2001 From: axherrm Date: Fri, 8 Dec 2023 21:42:50 +0100 Subject: [PATCH] add CD for all branches --- .github/workflows/continuous-deployment.yml | 22 ++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/continuous-deployment.yml b/.github/workflows/continuous-deployment.yml index 2f017d4..36b3989 100644 --- a/.github/workflows/continuous-deployment.yml +++ b/.github/workflows/continuous-deployment.yml @@ -24,22 +24,22 @@ jobs: # versions: ${{ steps.generate-matrix.outputs.versions }} steps: - uses: actions/checkout@v4 -# with: -# fetch-depth: 0 + with: + fetch-depth: 0 + - name: 'Setup jq' + uses: dcarbone/install-jq-action@v2.1.0 - name: Generate Matrix id: generate-matrix run: | - apt-get update - apt-get install -y jq - branches=($(git branch | cut -c 3-)) + branches=($(git branch -r | cut -c 3- | sed 's/origin\///g')) json_branches=$(printf '%s\n' "${branches[@]}" | jq -R . | jq -s -c .) -# json_branches=$(toJSON "${branches[@]}") echo ::set-output name=branches::${json_branches} - # SERVICES='${{ toJSON(github.event.client_payload.services) }}' -# echo ::set-output name=services::${SERVICES} -# VERSIONS='${{ toJSON(github.event.client_payload.versions) }}' -# echo ::set-output name=versions::${VERSIONS} - # ------------------------ +# apt-get update +# apt-get install -y jq + +# json_branches=$(toJSON "${branches[@]}") + + my_echo: runs-on: ubuntu-latest needs: