Skip to content

test-undeploy-my-kibana #41

test-undeploy-my-kibana

test-undeploy-my-kibana #41

name: test-undeploy-my-kibana
on:
merge_group: ~
workflow_dispatch: ~
pull_request:
branches:
- main
paths:
- '.github/workflows/test-undeploy-my-kibana.yml'
- 'oblt-cli/undeploy-my-kibana/**'
push:
branches:
- main
paths:
- '.github/workflows/test-undeploy-my-kibana.yml'
- 'oblt-cli/undeploy-my-kibana/**'
permissions:
contents: read
jobs:
undeploy-my-kibana:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./oblt-cli/undeploy-my-kibana
with:
github-app-id: ${{ secrets.OBS_AUTOMATION_APP_ID }}
github-app-private-key: ${{ secrets.OBS_AUTOMATION_APP_PEM }}
pull-request: '195219'
repository: 'elastic/kibana'
no-parameters:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./oblt-cli/undeploy-my-kibana
id: validation
continue-on-error: true
- name: Assert is failure if no parameters
run: test "${{steps.validation.outcome}}" = "failure"
all-parameters:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ./oblt-cli/undeploy-my-kibana
id: validation
continue-on-error: true
with:
github-app-id: "app"
github-app-private-key: "key"
github-token: "foo"
- name: Assert is failure if all parameters
run: test "${{steps.validation.outcome}}" = "failure"
test:
if: always()
needs:
- undeploy-my-kibana
- no-parameters
- all-parameters
runs-on: ubuntu-latest
steps:
- id: check
uses: elastic/oblt-actions/check-dependent-jobs@v1
with:
jobs: ${{ toJSON(needs) }}
- run: ${{ steps.check.outputs.is-success }}