[Cloud Connector] Persistence flow with Package policy and cloud connector #1
This file contains hidden or 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
| --- | |
| ## | |
| ## This the automation will undeploy an existing automated deployment | |
| ## caused by a merged/closed event and if the GitHub label matches | |
| ## the automated one. | |
| ## | |
| ## Owner: @elastic/observablt-robots | |
| ## Further details: https://ela.st/oblt-deploy-my-kibana | |
| ## | |
| name: undeploy-my-kibana | |
| on: | |
| pull_request_target: | |
| types: [closed] | |
| permissions: | |
| contents: read | |
| jobs: | |
| undeploy-my-kibana: | |
| if: contains(github.event.pull_request.labels.*.name, 'ci:project-deploy-observability') | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: elastic/oblt-actions/oblt-cli/undeploy-my-kibana@v1 | |
| with: | |
| github-app-id: ${{ secrets.OBS_AUTOMATION_APP_ID }} | |
| github-app-private-key: ${{ secrets.OBS_AUTOMATION_APP_PEM }} |