Commit Graph
61 Commits
Author SHA1 Message Date
Phil Jay 1b05caeb4c Treat tag prefixes as literal strings
Prevent regex metacharacters and sed delimiters in a tag prefix
from selecting unintended tags or causing lookup failures.
2026-08-10 15:22:02 +10:00
Phil Jay f275de0d59 Expose parsing errors 2026-08-10 15:11:56 +10:00
Phil Jay 26724048ca Add API call for git log 2026-08-10 12:38:33 +10:00
Phil Jay 69ceeacf75 Add integration test for API + CC error 2026-08-10 12:27:44 +10:00
Phil Jay 284d1792e3 Add test to expose issue 2026-08-10 12:19:47 +10:00
Phil Jay cfe1cec8c0 Add permission to write for tag/release 2026-08-10 07:42:06 +10:00
Phil Jay d503d08693 Update to latest BATS version 2026-08-07 15:19:26 +10:00
Phil Jay a096ae3fb1 Update to latest versions of actions 2026-08-07 15:19:16 +10:00
Phil Jay 95aaf0c0e9 Fix test for when on main branch 2024-09-02 10:55:20 +10:00
Phil Jay ca62a5d18e Update to latest BATS 2024-04-24 12:45:43 +10:00
Phil Jay f149a06e08 Switch to bats-core/bats-action
Is maintained, and uses up to date node (v20)
2024-04-24 12:44:19 +10:00
Phil Jay 8df12f2eb1 Update README 2024-04-24 12:35:10 +10:00
Phil Jay 16351e1923 Update to use brace variable referencing
https://stackoverflow.com/a/8748880
2024-04-24 12:28:33 +10:00
Phil Jay 512aaef59f Fix: file location after rework of tests 2024-04-24 12:25:14 +10:00
Phil Jay 238431148e Remove log message
- Message is using a variable that's not confirmed as set yet
- Message is output by `version-lookup.sh` in normal operation anyway
2024-04-24 12:25:14 +10:00
Phil Jay 192637163e Enable testing on Windows 2024-04-24 12:12:29 +10:00
Phil Jay ed7b98e336 Disable Windows testing for now 2024-04-24 11:45:57 +10:00
Phil Jay 13338be6d3 Rework MacOS support 2024-04-24 11:43:51 +10:00
Phil Jay 74a6f3d520 Run tests on all runner types 2024-04-24 11:00:01 +10:00
Phil JayandGitHub 81805365e1 Update README.md for version bump 2024-04-23 17:37:34 +10:00
Phil JayandGitHub c6ea11748a Update README.md for conventional commits 2024-04-23 17:34:47 +10:00
Phil JayandGitHub 73ade5516c Update version-increment.sh for old comment 2024-04-23 17:17:01 +10:00
Phil JayandGitHub 352a9961c8 Update action.yml for README 2024-04-23 17:13:22 +10:00
Phil Jay bfdbc118ba Remove transitional code
We don't have any more projects at `reecetech` that use the older
non-semver compliant calver versioning
2023-10-19 22:27:40 +11:00
Phil Jay 68bf4fe26d Remove duplicate code
The functionality is included in `shared.sh` which is sourced by this
file
2023-10-19 22:25:05 +11:00
Phil Jay aac681e0d0 Improve testing by testing the action.yml 2023-10-19 00:41:37 +11:00
Phil Jay 95f6bcc37a Update README 2023-10-19 00:24:41 +11:00
Phil Jay 8b80e08158 Add use_api feature
So that you don't _need_ to checkout (clone) the repo to the worker
2023-10-19 00:24:41 +11:00
Phil Jay 27ee2a7786 Add testing for use_api 2023-10-18 23:59:53 +11:00
Phil Jay 3ac8392aa4 Update to latest shellcheck
Solves for `set-output` deprecation warnings
2023-09-20 10:39:13 +10:00
Phil Jay 72c1fa6077 Bump up example version 2023-09-20 10:38:38 +10:00
Phil Jay 4415fcb6c0 Replace out-of-date action
The update to node 16 has been un-merged for a long time: https://github.com/marvinpinto/action-automatic-releases/pull/2
2023-09-20 10:33:38 +10:00
Phil JayandGitHub d5f78b25d1 Update test cases 2023-04-27 11:59:49 +10:00
Phil Jay bfb5689c4d Update README 2023-04-27 09:33:35 +10:00
Phil Jay f81c317cbd Alter PEP440 handling to support both sem and cal 2023-04-27 09:10:47 +10:00
Phil Jay bb0e075f8b Add pep440 mode 2023-04-26 16:31:08 +10:00
Phil Jay 5f9f764060 New version available! 2022-10-19 14:26:06 +11:00
Phil Jay 8e33684d42 Update action.yml for output name changes 2022-10-19 10:49:16 +11:00
Phil Jay b7be5e00c2 Disable style warning 2022-10-19 10:49:16 +11:00
Phil Jay ced1d4ac1d Replace set-output with append to GITHUB_OUTPUT 2022-10-19 09:24:11 +11:00
Phil Jay e7c0a5aac2 Update tests to _not_ expect set-output 2022-10-19 09:24:11 +11:00
Phil Jay c1893b945a Add GITHUB_OUTPUT override for testing 2022-10-19 08:51:07 +11:00
Phil Jay 1d159768e8 Update BATS 2022-10-18 16:31:37 +11:00
Phil Jay b9bae4a2dc Update GitHub actions 2022-10-18 16:10:59 +11:00
Phil Jay e53268eb3f Expose the pre-release label as an output 2022-05-12 15:44:33 +10:00
Phil Jay ba14b463c4 Add both "plain" and v prefix version outputs 2022-02-10 22:27:59 +11:00
Phil Jay fde70f2da9 Add tests for new desired output 2022-02-10 22:27:23 +11:00
Philip JayandGitHub 827489c005 Merge pull request #11 from reecetech/fixing-outputs
Fixing the outputs to match README
2022-02-08 14:55:07 +11:00
Phil Jay ee28762c5b Update README for next version 2022-02-08 14:52:41 +11:00
Phil Jay 9492ff84fb Avoid broken pipe exits (141) when head exits
Intermittent issue, only observed on self-hosted agents on VMware (due
to multi-core processing)
2022-02-01 12:23:49 +11:00
Phil Jay 38a48eeef1 Add v prefixed version outputs
See: https://github.com/reecetech/version-increment/issues/8
2021-11-15 06:54:57 +11:00
Phil Jay 4988018178 Add tests for v prefixed version output 2021-11-15 06:54:21 +11:00
Phil Jay a17b442bee Replace with latest version
2021.10.4 had a bug, we should have updated this when 2021.10.5 came
out.  Now the next version will be 2021.11.1
2021-11-01 19:08:01 +11:00
Phil Jay a7121378a5 Fix for composite actions not having INPUT_ vars
See: https://github.com/actions/runner/issues/665
2021-10-22 11:54:47 +11:00
Phil Jay f9aea6e594 Use latest BATS 2021-10-22 11:54:47 +11:00
Phil Jay a54c16bb35 Rework for slightly better code style 2021-10-21 23:38:59 +11:00
Phil Jay 8700256121 Fix: composite runs using bash require env 2021-10-20 12:11:22 +11:00
Phil Jay 2fa6f4f0f9 Update to show version 2021-10-20 12:07:00 +11:00
Phil Jay efc89dc7d0 Fix metadata syntax in action.yml 🛠
```
Description must be less than 125 characters.
```
2021-10-20 11:31:17 +11:00
Phil Jay 41a040c60e Add initial codebase 2021-10-20 11:18:23 +11:00
Phil Jay c87131de31 Add license - Unlicense 2021-10-20 11:16:44 +11:00