Skip to content

Commit

Permalink
chore: add per attempt behavior overrides
Browse files Browse the repository at this point in the history
  • Loading branch information
mhofman committed Sep 8, 2023
1 parent 77ab050 commit f5e559a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,15 @@ jobs:
let behavior = '{}';
if (context.payload.pull_request) {
const { body } = context.payload.pull_request;
core.debug(`body: ${body}`)
const regex = /^\#matrix-test-${{ matrix.variation }}:\s+(.*)$/m;
const result = regex.exec(body);
core.debug(`regex result: ${result}`)
if (result) {
behavior = result[1];
}
const attempt = behavior.attempts && behavior.attempts[${{ github.run_attempt }}]
behavior = attempt || beahvior
}
console.log(behavior);
return behavior;
Expand Down Expand Up @@ -81,11 +85,15 @@ jobs:
let behavior = '{}';
if (context.payload.pull_request) {
const { body } = context.payload.pull_request;
core.debug(`body: ${body}`)
const regex = /^\#standalone-test:\s+(.*)$/m;
const result = regex.exec(body);
core.debug(`regex result: ${result}`)
if (result) {
behavior = result[1];
}
const attempt = behavior.attempts && behavior.attempts[${{ github.run_attempt }}]
behavior = attempt || beahvior
}
console.log(behavior);
return behavior;
Expand Down

0 comments on commit f5e559a

Please sign in to comment.