SUPINT-2380: nuxeo admin console web scripts works #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Delete PreProd | |
on: | |
workflow_dispatch: | |
inputs: | |
version: | |
description: 'Version to be used' | |
required: true | |
pull_request: | |
types: [opened, synchronize] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Use input version | |
if: github.event_name == 'workflow_dispatch' | |
run: | | |
echo "Version: ${{ github.event.inputs.version }}" | |
- name: PR Version Placeholder | |
if: github.event_name == 'pull_request' | |
run: echo "This is a PR. You can set up version handling for PRs here." | |
- name: Delete test promoted Admin Console to Connect PREPROD | |
if: github.event_name == 'workflow_dispatch' | |
env: | |
CONNECT_PREPROD_URL: https://nos-preprod-connect.nuxeocloud.com/nuxeo | |
run: curl -i -u "${{ secrets.CONNECT_PREPROD_AUTH }}" -X DELETE "$CONNECT_PREPROD_URL/site/marketplace/delete/nuxeo-admin-console-ui-package-${{ github.event.inputs.version }}" | |