Update release.yaml

This commit is contained in:
João Malés 2024-07-05 09:52:14 +01:00 committed by GitHub
parent 803d6ebf3e
commit cb1da4e186
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -6,7 +6,7 @@ on:
jobs: jobs:
set-package-matrix: set-package-matrix:
# This action returns all sub-packages to be published, except the `thousandeyes-sdk-core`. # This action returns all sub-packages to be published.
# It thens exports the variable to matrix, so that the deployment job is run individually for each sub-package # It thens exports the variable to matrix, so that the deployment job is run individually for each sub-package
runs-on: ubuntu-latest runs-on: ubuntu-latest
outputs: outputs:
@ -15,7 +15,7 @@ jobs:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- id: packages - id: packages
run: | run: |
FOLDERS_JSON=$(find . -maxdepth 1 -type d -name "thousandeyes-sdk-*" ! -name "thousandeyes-sdk-core"| cut -c 3- | jq -R -s -c 'split("\n")[:-1]') FOLDERS_JSON=$(find . -maxdepth 1 -type d -name "thousandeyes-sdk-*" | cut -c 3- | jq -R -s -c 'split("\n")[:-1]')
echo "packages=$FOLDERS_JSON" >> "$GITHUB_OUTPUT" echo "packages=$FOLDERS_JSON" >> "$GITHUB_OUTPUT"
deployment: deployment:
if: github.event.pull_request.merged == true if: github.event.pull_request.merged == true