Skip to content

Commit

Permalink
Merge pull request #41 from HCL-TECH-SOFTWARE/Stwissel-patch-1
Browse files Browse the repository at this point in the history
Update push-snapshot.yml
  • Loading branch information
rwilkins108 authored Feb 2, 2024
2 parents 1412bc1 + 86671bf commit f861fe4
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions .github/workflows/push-snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,25 @@ jobs:
- name: Extract Project version
id: project
run: echo "MVN_VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)" >> $GITHUB_ENV
- name: Check env variable
run: echo $MVN_VERSION
- name: set productName for Snapshot
if: endsWith(env.MVN_VERSION, '-SNAPSHOT')
run: echo "PRODUCT_NAME=HCL Labs Project KEEP" >> $GITHUB_ENV
- name: Determine productName for release
if: ${{ ! endsWith(env.MVN_VERSION, '-SNAPSHOT')}}
run: echo "PRODUCT_NAME=HCL Labs Project KEEP $MVN_VERSION" >> $GITHUB_ENV
- name: Check env variables
run: echo version = $MVN_VERSION, product = $PRODUCT_NAME
- run: mvn --no-transfer-progress clean
- run: npm ci
- run: npm run build
- run: npm run test
- name: Run Mend Scan
uses: TheAxZim/Whitesource-Scan-Action@v1.0.0
with:
wssURL: https://app.whitesourcesoftware.com/agent
apiKey: ${{ secrets.WSS_API_KEY }}
productName: $PRODUCT_NAME
projectName: 'domino-keep-admin-ui'
- name: Publish only Snapshot to GitHub Packages
if: endsWith(env.MVN_VERSION, '-SNAPSHOT')
run: mvn --no-transfer-progress deploy
Expand Down

0 comments on commit f861fe4

Please sign in to comment.