Skip to content

Commit

Permalink
Merge pull request #133 from scality/bugfix/fix-delay-job-completion
Browse files Browse the repository at this point in the history
delay-job-completion: fix help message
  • Loading branch information
oliviergaraud authored Oct 26, 2023
2 parents e8de60d + 69fbffb commit d3354b8
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions action-delay-job-completion/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@ runs:
EOF
)
echo "::notice title=Delay workflow completion::${MESSAGE}"
Delete the file '$GITHUB_WORKSPACE/timeout_date' to cancel.
You can update that file with:
date '+%s' --date='now + <X> minutes' > $GITHUB_WORKSPACE/timeout_date to change the delay."
date '+%s' --date='now + ${{ inputs.completion_delay_m }} minutes' > $GITHUB_WORKSPACE/timeout_date
while [ $(date '+%s') -lt $(cat $GITHUB_WORKSPACE/timeout_date 2>/dev/null || echo 0) ] && [[ -f /tmp/tmate.pid ]] && ps --pid $(cat /tmp/tmate.pid) &>/dev/null ;
Expand Down

0 comments on commit d3354b8

Please sign in to comment.