Skip to content

Commit

Permalink
add CD for all branches
Browse files Browse the repository at this point in the history
  • Loading branch information
axherrm committed Dec 8, 2023
1 parent f29a614 commit ea34494
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/continuous-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
- 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:
Expand Down

0 comments on commit ea34494

Please sign in to comment.