mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-18 11:50:03 +00:00
github: Fix slash-command-action usage
`/test-kata-deploy` command does **not** work, and the output returned is: ``` Error: Comment didn't contain a valid slash command ``` So, why does this happen? This is the regex used: `^\/([\w]+)\b *(.*)?$`, being the important part of the command "\/([\w]+)\b", with the rest being arguments to it. Okay, `\w` is the key here, as `\w` means: a-z, A-Z, 0-9, including the _. Our command is `/test-kata-deploy`, and `-` is not present as part of `\w`. Knowing this we need to update the command to something like: `/test_kata_deploy` Fixes: #1645 Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
This commit is contained in:
parent
b09fda36bd
commit
7873b7a1f9
2
.github/workflows/kata-deploy-test.yaml
vendored
2
.github/workflows/kata-deploy-test.yaml
vendored
@ -14,7 +14,7 @@ jobs:
|
||||
uses: kata-containers/slash-command-action@v1
|
||||
with:
|
||||
repo-token: ${{ secrets.GITHUB_TOKEN }}
|
||||
command: "test-kata-deploy"
|
||||
command: "test_kata_deploy"
|
||||
reaction: "true"
|
||||
reaction-type: "eyes"
|
||||
allow-edits: "false"
|
||||
|
Loading…
Reference in New Issue
Block a user