Skip to content

Commit

Permalink
build with maintaince branch
Browse files Browse the repository at this point in the history
  • Loading branch information
rakeshkumar1019 committed Mar 18, 2024
1 parent 41fe156 commit f69f70b
Showing 1 changed file with 2 additions and 26 deletions.
28 changes: 2 additions & 26 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: ${{ github.head_ref || inputs.branch || 'maintenance-3.0.x' }}
BRANCH_NAME: ${{ 'maintenance-3.0.x' }}

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
permissions:
Expand All @@ -57,22 +57,6 @@ jobs:
runs-on: [self-hosted, master]
steps:


- name: Get Tags
id: tags
run: |
git fetch --tags
echo "Tags fetched"
- name: Get Latest Tag
id: latest-tag
run: |
latest_tag=$(git describe --tags `git rev-list --tags --max-count=1`)
echo "LATEST_TAG=$latest_tag" >> $GITHUB_ENV
- name: Use Latest Tag
run: |
echo "The latest tag is $LATEST_TAG"
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it and copies all sources into ZIP file for submitting for analysis. Replace this section with your applications build steps
- uses: actions/checkout@v2
with:
Expand All @@ -89,14 +73,6 @@ 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 @@ -111,7 +87,7 @@ jobs:
repository: nuxeo/nuxeo-elements
path: nuxeo-elements
fetch-depth: 1
ref: ${{ steps.pick_nuxeo_elements_branch.outputs.branch }}
ref: ${{ env.BRANCH_NAME }}

- name: Pack Elements modules
run: |
Expand Down

0 comments on commit f69f70b

Please sign in to comment.