Skip to content

Commit

Permalink
change the version
Browse files Browse the repository at this point in the history
  • Loading branch information
Parisa68 committed Sep 24, 2024
1 parent b89b51e commit 78eab2d
Showing 1 changed file with 48 additions and 51 deletions.
99 changes: 48 additions & 51 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 78eab2d

Please sign in to comment.