-
Notifications
You must be signed in to change notification settings - Fork 1
31 lines (25 loc) · 965 Bytes
/
delete.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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 }}"