Peter Colapietro
48bc5d4b1c
fix(github): bump to @actions/core@1.10.0 ( #104 )
...
> Action authors who are using the toolkit should update the `@actions/core` package to `v1.10.0` or greater to get the updated `saveState` and `setOutput` functions.
- https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
closes: https://github.com/nick-fields/retry/issues/103
2022-10-14 20:41:20 -04:00
Nick Fields
b4fa57557d
Refactor to make testing easier ( #90 )
...
* minor: refactor to make testing easier
* patch: retrieve inputs into object rather than globals
* test: run more "integration" tests in parallel
* test: fix needs and rearrange ci_integration_* jobs
* test: forgot comma
* test: fix sad_path_timeout_minutes assertions
* test: add single ci_all_tests_passed job that can be required for CI rather than each individual job
* test: add single ci_all_tests_passed job that can be required for CI rather than each individual job
2022-08-05 23:31:37 -04:00
Nick Fields
616fa81820
Use spawn not exec to run commands ( #88 )
...
* minor: use spawn to stream larger output rather than exec which buffers it
* test: verify distinct error code is returned from large output test
* test: breakout additional integration tests to run in parallel
* test: dont pass/fail PRs for coverage yet
2022-08-03 23:02:05 -04:00
Snyk bot
0f986c438b
[Snyk] Upgrade @actions/core from 1.8.2 to 1.9.0 ( #81 )
...
* fix: upgrade @actions/core from 1.8.2 to 1.9.0
Snyk has created this PR to upgrade @actions/core from 1.8.2 to 1.9.0.
See this package in npm:
https://www.npmjs.com/package/@actions/core
See this project in Snyk:
https://app.snyk.io/org/nick-invision/project/b960b937-66a3-4aae-9cb2-321f49c8750b?utm_source=github&utm_medium=referral&page=upgrade-pr
* patch: regenerate dist
Co-authored-by: Nick Fields <46869826+nick-fields@users.noreply.github.com >
2022-08-03 03:15:43 +00:00
Nick Fields
3dad7de805
Setup prettier and eslint and run pre-commit ( #86 )
...
* patch: setup prettier
* patch: move .commitlintrc.js to .config
* patch: config lint-staged and update husky
* patch: configure eslint as well
2022-08-03 02:47:32 +00:00
Nick Fields
14b6b46d04
patch: update typescript to latest ( #85 )
2022-08-03 01:55:30 +00:00
Nick Fields
ce44dab6c9
[Snyk] Upgrade @actions/core from 1.5.0 to 1.8.2 ( #73 )
...
* fix: upgrade @actions/core from 1.5.0 to 1.8.2
Snyk has created this PR to upgrade @actions/core from 1.5.0 to 1.8.2.
See this package in npm:
https://www.npmjs.com/package/@actions/core
See this project in Snyk:
https://app.snyk.io/org/nick-invision/project/b960b937-66a3-4aae-9cb2-321f49c8750b?utm_source=github&utm_medium=referral&page=upgrade-pr
* patch: regenerate action after bumping @actions/core
Co-authored-by: snyk-bot <snyk-bot@snyk.io >
Co-authored-by: Nick Fields <46869826+nick-fields@users.noreply.github.com >
2022-06-20 01:27:32 +00:00
Nick Fields
f227091f2e
feat: retry only on specific exit code ( #58 )
...
* feat: retry only on specific exit code
* Run ci_cd on all push events
* dedupe step IDs
* add assertions for retry_on_exit_code tests
* minor: implemented suggested fix from @andersfischernielsen
* docs: update readme to reflect new retry_on_exit_code input
Co-authored-by: Anders Fischer-Nielsen <andersfischern@me.com >
2022-04-25 22:10:55 -04:00
Nick Fields
bf1736e338
minor: regenerate dist
2021-12-09 20:02:53 -05:00
Nick Fields
67e1bdfd8d
minor: add continue_on_error input option
2021-09-23 22:26:06 -04:00
Nick Fields
7c68161adf
Add on_retry_command input to optionally run cmd before a retry ( #33 )
...
* minor: add on_retry_command input to optionally run cmd before a retry
* test: add test for on-retry-command failure
2021-01-04 21:32:32 -05:00
Nick Fields
bee86ddb77
docs: cleanup docs around shell defaults and supported
2021-01-03 21:00:31 -05:00
Nick Fields
d0aac3501c
fix: dont require OS input and use correct shell per os
2021-01-02 10:20:16 -05:00
Isaac Levin
877a0ac37e
feat: add SHELL input support
2021-01-01 22:57:53 +00:00
Nick Fields
292d515fa9
fix: allow timeout_seconds to be less than retry_wait_time
2020-11-18 10:28:44 -05:00
Nick Fields
5ee366655c
feat: add warning_on_retry input
2020-11-18 10:25:11 -05:00
Nick Fields
409054c003
minor: migrate to typescript and updated devDeps
2020-11-14 11:45:32 -05:00
Nick Fields
36c6f604ab
fix: handle errors properly
2020-11-14 09:11:33 -05:00
Nick Fields
31e0097983
fix: make command spawnable to fix log issue
2020-10-31 10:43:28 -04:00
Nick Fields
3f5463b526
major: bump to v2 and added lots of examples
2020-09-29 14:56:52 -04:00
Nick Fields
915303cda5
fix: surface exit code from spawned process
...
patch: added dotenv sample configuration and command to run locally
fix: added timeout_seconds input and handle timeout properly
2020-09-29 14:22:46 -04:00
Nick Fields
ec785f59e1
minor: added tests and helper outputs for PR #15
2020-09-29 10:48:02 -04:00
Nick Fields
6a380b501f
fix: fixed debug logging
2020-06-17 13:57:10 -04:00
Nick Fields
3ded872743
fix: enforce RETRY_WAIT_SECONDS on both command timeout and error
2020-06-17 13:52:49 -04:00
Nick Fields
88ea919f23
patch: added debugging for issue #5
2020-06-17 13:48:21 -04:00
Nick Fields
d4e983ab06
major: initial implementation of retry step
2020-02-13 16:46:33 -05:00