Skip to content

Commit

Permalink
snapshot test cuurent branch
Browse files Browse the repository at this point in the history
  • Loading branch information
rakeshkumar1019 committed Mar 18, 2024
1 parent 8f31f4f commit 45f7b15
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/veracode-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ on:
env:
REFERENCE_BRANCH: maintenance-3.0.x
NPM_REPOSITORY: https://packages.nuxeo.com/repository/npm-public/
BRANCH_NAME: ${{ 'maintenance-3.0.x' }}
BRANCH_NAME: ${{ github.head_ref || inputs.branch || 'maintenance-3.0.x' }}

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
permissions:
Expand Down Expand Up @@ -73,6 +73,14 @@ jobs:
distribution: 'zulu'
java-version: '11'

- name: Determine nuxeo-elements branch to link
id: pick_nuxeo_elements_branch
run: |
if git ls-remote --exit-code --heads https://github.com/nuxeo/nuxeo-elements ${{ env.BRANCH_NAME }}; then
echo ::set-output name=branch::${{ env.BRANCH_NAME }}
else
echo ::set-output name=branch::${{ env.REFERENCE_BRANCH }}
fi
- name: Install Web UI
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_PACKAGES_TOKEN }}
Expand All @@ -87,7 +95,7 @@ jobs:
repository: nuxeo/nuxeo-elements
path: nuxeo-elements
fetch-depth: 1
ref: ${{ env.BRANCH_NAME }}
ref: ${{ steps.pick_nuxeo_elements_branch.outputs.branch }}

- name: Pack Elements modules
run: |
Expand Down

0 comments on commit 45f7b15

Please sign in to comment.