diff --git a/.github/workflows/package.yml b/.github/workflows/package.yml index 5d9fed75..f6989ed4 100644 --- a/.github/workflows/package.yml +++ b/.github/workflows/package.yml @@ -2,67 +2,64 @@ name: Publish on: push: jobs: -# detect_changes: -# runs-on: ubuntu-latest -# outputs: -# outputs: -# lega-commander: ${{ steps.changes.outputs.lega-commander }} -# e2eTests: ${{ steps.changes.outputs.e2eTests }} -# clearinghouse: ${{ steps.changes.outputs.clearinghouse }} -# crypt4gh: ${{ steps.changes.outputs.crypt4gh }} -# tsd-file-api-client: ${{ steps.changes.outputs.tsd-file-api-client }} -# cega-mock: ${{ steps.changes.outputs.cega-mock }} -# localega-tsd-proxy: ${{ steps.changes.outputs.localega-tsd-proxy }} -# mq-interceptor: ${{ steps.changes.outputs.mq-interceptor }} -# tsd-api-mock: ${{ steps.changes.outputs.tsd-api-mock }} -# steps: -# - uses: actions/checkout@v4 -# - uses: dorny/paths-filter@v3 -# id: changes -# with: -# filters: | -# lega-commander: -# - 'cli/lega-commander/**' -# e2eTests: -# - 'e2eTests/**' -# clearinghouse: -# - 'lib/clearinghouse/**' -# crypt4gh: -# - 'lib/crypt4gh/**' -# tsd-file-api-client: -# - 'lib/tsd-file-api-client/**' -# cega-mock: -# - 'services/cega-mock/**' -# localega-tsd-proxy: -# - 'services/localega-tsd-proxy/**' -# mq-interceptor: -# - 'services/mq-interceptor/**' -# tsd-api-mock: -# - 'services/tsd-api-mock/**' + # detect_changes: + # runs-on: ubuntu-latest + # outputs: + # outputs: + # lega-commander: ${{ steps.changes.outputs.lega-commander }} + # e2eTests: ${{ steps.changes.outputs.e2eTests }} + # clearinghouse: ${{ steps.changes.outputs.clearinghouse }} + # crypt4gh: ${{ steps.changes.outputs.crypt4gh }} + # tsd-file-api-client: ${{ steps.changes.outputs.tsd-file-api-client }} + # cega-mock: ${{ steps.changes.outputs.cega-mock }} + # localega-tsd-proxy: ${{ steps.changes.outputs.localega-tsd-proxy }} + # mq-interceptor: ${{ steps.changes.outputs.mq-interceptor }} + # tsd-api-mock: ${{ steps.changes.outputs.tsd-api-mock }} + # steps: + # - uses: actions/checkout@v4 + # - uses: dorny/paths-filter@v3 + # id: changes + # with: + # filters: | + # lega-commander: + # - 'cli/lega-commander/**' + # e2eTests: + # - 'e2eTests/**' + # clearinghouse: + # - 'lib/clearinghouse/**' + # crypt4gh: + # - 'lib/crypt4gh/**' + # tsd-file-api-client: + # - 'lib/tsd-file-api-client/**' + # cega-mock: + # - 'services/cega-mock/**' + # localega-tsd-proxy: + # - 'services/localega-tsd-proxy/**' + # mq-interceptor: + # - 'services/mq-interceptor/**' + # tsd-api-mock: + # - 'services/tsd-api-mock/**' - generate_matrix: -# needs: detect_changes + setup: runs-on: ubuntu-latest + outputs: + matrix: ${{ steps.matrix.outputs.value }} steps: - - name: Generate matrix - id: matrix + - id: matrix run: | - matrix='[]' - if [ "true" == "true" ]; then - matrix=$(echo $matrix | jq '. += ["clearinghouse"]') - fi - echo "matrix=$matrix" >> $GITHUB_OUTPUT - - name: print - run: echo ${{ steps.matrix.outputs.matrix }} + echo "value=[\"a\", \"b\", \"c\"]" >> $GITHUB_OUTPUT + - run: | + echo "${{ steps.matrix.outputs.value }}" build: - needs: generate_matrix + needs: setup runs-on: ubuntu-latest strategy: matrix: - value: ${{ fromJSON(needs.generate_matrix.outputs.matrix) }} + value: ${{fromJSON(needs.setup.outputs.matrix)}} steps: - - run: echo "Building for ${{ matrix.value }}" + - run: | + echo "${{ matrix.value }}" # # release_fega_norway: