We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 40ec00c + 3fa9861 commit caddeecCopy full SHA for caddeec
action.yml
@@ -12,6 +12,9 @@ runs:
12
id: duration
13
with:
14
script: |
15
+ if (context.eventName != 'pull_request') {
16
+ proccess.exit(0)
17
+ }
18
const currentTime = new Date().getTime();
19
const currentRun = await github.rest.actions.getWorkflowRun({
20
owner: context.repo.owner,
@@ -47,7 +50,6 @@ runs:
47
50
outputMessage = '🕒 Workflow \"' + context.workflow + '\" took ' + (currentRunDurationInMillis / 1000) + 's which is ' + outcome + ' with ' + Math.abs(diffInSeconds) + 's (' + Math.abs(percentageDiff) + '%) compared to latest run on master/main.'
48
51
}
49
52
- console.log(outputMessage)
53
github.rest.issues.createComment({
54
issue_number: context.issue.number,
55
0 commit comments