Skip to content

Commit

Permalink
fix: slash command matrix inputs (#184)
Browse files Browse the repository at this point in the history
  • Loading branch information
zack-is-cool authored Oct 29, 2024
1 parent 2ea3f6d commit 44f0bf4
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions .github/workflows/test-command.yml
Original file line number Diff line number Diff line change
@@ -1,21 +1,20 @@
# usage:
# A user with write status to the repo can from a PR comment:
# A user with write status to the repo can from a PR comment:

# run a single test
# /test make=<make-target> region=<region>
# run a single test
# /test make=<make-target> region=<region>

# run ping test
# /test ping
# run ping test
# /test ping

# run all tests in the makefile
# /test
# run all tests in the makefile
# /test

name: test
on:
repository_dispatch:
types: [test-command]


permissions:
id-token: write
contents: read
Expand All @@ -35,4 +34,4 @@ jobs:
AWS_GOVCLOUD_ROLE_TO_ASSUME: ${{ secrets.NARWHAL_AWS_GOVCLOUD_ROLE_TO_ASSUME }}
with:
# check if the required slash command args are present, if so populate the json matrix, else pass in null and relevant e2e tests that would require a make target and region will be skipped
e2e-test-matrix: ${{ (contains(github.event.client_payload.slash_command_args.named, 'make') && contains(github.event.client_payload.slash_command_args.named, 'region')) && format('[{{"make-target":"{0}", "region":"{1}"}}]', github.event.client_payload.slash_command_args.named.make, github.event.client_payload.slash_command_args.named.region) || null }}
e2e-test-matrix: ${{ (contains(github.event.client_payload.slash_command.args.named, 'make') && contains(github.event.client_payload.slash_command.args.named, 'region')) && format('[{{"make-target":"{0}", "region":"{1}"}}]', github.event.client_payload.slash_command.args.named.make, github.event.client_payload.slash_command.args.named.region) || null }}

0 comments on commit 44f0bf4

Please sign in to comment.