Skip to content

Commit

Permalink
tocken
Browse files Browse the repository at this point in the history
  • Loading branch information
rakeshkumar1019 committed Jul 10, 2024
1 parent c70c12c commit 8d6dc0f
Showing 1 changed file with 19 additions and 11 deletions.
30 changes: 19 additions & 11 deletions .github/workflows/promote.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -107,23 +107,31 @@ jobs:
exit 0
fi
- name: Push promoted Admin Console UI to Connect PROD
if: ${{ github.event.inputs.dryRun == 'false' }}
env:
PACKAGE: nuxeo-admin-console-ui-package-${{ env.VERSION }}
CONNECT_URL: https://connect.nuxeo.com/nuxeo
run: curl -i -u "${{ secrets.CONNECT_AUTH }}" -F package=@$PACKAGE.zip "$CONNECT_URL/site/marketplace/upload?batch=true"
# - name: Push promoted Admin Console UI to Connect PROD
# if: ${{ github.event.inputs.dryRun == 'false' }}
# env:
# CONNECT_URL: https://connect.nuxeo.com/nuxeo
# run: |
# PACKAGE="nuxeo-admin-console-package-${{env.VERSION}}.zip"
# STATUS_CODE=`curl -i --silent --output publish-req.output -w "%{http_code}" -u "${{ secrets.CONNECT_AUTH }}" -F package=@$PACKAGE "$CONNECT_URL/site/marketplace/upload?batch=true"`
# cat publish-req.output
# if [[ "$STATUS_CODE" != "200" ]]
# then
# exit 1
# else
# exit 0
# fi

- uses: actions/checkout@v4
with:
token: ${{ secrets.GIT_ADMIN_TOKEN }}
token: ${{ secrets.GIT_TOKEN }}
ref: ${{ github.event.inputs.referenceBranch }}

- if: ${{ github.event.inputs.referenceBranch == 'master' }}
run: echo "NEW_VERSION=$(npx semver -i minor $VERSION)" >> $GITHUB_ENV
# - if: ${{ github.event.inputs.referenceBranch == 'main' }}
# run: echo "NEW_VERSION=$(npx semver -i minor $VERSION)" >> $GITHUB_ENV

- if: ${{ github.event.inputs.referenceBranch != 'master' }}
run: echo "NEW_VERSION=$(npx semver -i patch $VERSION)" >> $GITHUB_ENV
- if: ${{ github.event.inputs.referenceBranch != 'main' }}
run: echo "NEW_VERSION=$(npx semver -i minor $VERSION)" >> $GITHUB_ENV

- name: Align ${{ github.event.inputs.referenceBranch }} branch on next version ${{ env.NEW_VERSION }}-SNAPSHOT
env:
Expand Down

0 comments on commit 8d6dc0f

Please sign in to comment.