Skip to content

operator [R] victoriametrics-operator (0.20.1 0.21.0 0.22.0 0.22.1 0.23.3 0.24.0 0.25.0 0.25.1) #9784

operator [R] victoriametrics-operator (0.20.1 0.21.0 0.22.0 0.22.1 0.23.3 0.24.0 0.25.0 0.25.1)

operator [R] victoriametrics-operator (0.20.1 0.21.0 0.22.0 0.22.1 0.23.3 0.24.0 0.25.0 0.25.1) #9784

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'
})