Skip to content

Commit

Permalink
Merge pull request #5729 from gooddata/IMJ-STL-1007-3
Browse files Browse the repository at this point in the history
chore: fix isolated command comment check
  • Loading branch information
pbenes authored Dec 18, 2024
2 parents 6479a70 + 8b8fa4e commit efa2d5f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/pull-request-comment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ jobs:

e2e-run-isolated:
needs: [get-pr-info,extract-filter]
if: $${{ startsWith(github.event.comment.body, 'extended-test --isolated') }}
if: ${{ startsWith(github.event.comment.body, 'extended-test --isolated') }}
permissions:
id-token: write
contents: read
Expand Down Expand Up @@ -165,16 +165,16 @@ jobs:
const url = `https://github.com/${repository.owner}/${repository.repo}/actions/runs/${context.runId}`;
let testResult = "'command not recognized'";
if (process.env.COMMENT.startsWith('extended-test --isolated')) {
if (process.env.COMMENT?.startsWith('extended-test --isolated')) {
testResult = process.env.TEST_RESULT_ISOLATED;
}
if (process.env.COMMENT.startsWith('extended-test --record')) {
if (process.env.COMMENT?.startsWith('extended-test --record')) {
testResult = process.env.TEST_RESULT_RECORD;
}
if (process.env.COMMENT.startsWith('extended-test --integrated')) {
if (process.env.COMMENT?.startsWith('extended-test --integrated')) {
testResult = process.env.TEST_RESULT_INTEGRATED;
}
if (process.env.COMMENT.startsWith('extended-test --backstop')) {
if (process.env.COMMENT?.startsWith('extended-test --backstop')) {
testResult = process.env.TEST_RESULT_BACKSTOP;
}
Expand Down

0 comments on commit efa2d5f

Please sign in to comment.