Skip to content

operator kiali (2.3.0) #9859

operator kiali (2.3.0)

operator kiali (2.3.0) #9859

on: issue_comment
name: Issue Comments - retest
env:
OPP_PRODUCTION_TYPE: "k8s"
jobs:
handle_comments:
name: Check comments for /retest
if: |
startsWith(github.event.comment.body, '/retest')
runs-on: ubuntu-latest
steps:
- name: Restest command handler
id: command
uses: xt0rted/slash-command-action@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
command: retest
reaction: "true"
reaction-type: "eyes"
allow-edits: "true"
permission-level: read
- name: Doing hold
uses: actions/github-script@v6
if: |
steps.command.outputs.command-name == 'retest'
with:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: '/hold'
})
- name: Sleep for 10 seconds
uses: jakejarvis/wait-action@master
with:
time: '10s'
- name: Doing hold cancel
uses: actions/github-script@v6
if: |
steps.command.outputs.command-name == 'retest'
with:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: '/hold cancel'
})