Skip to content

Commit ab0646f

Browse files
authored
[semver:patch] Update validation regex and add shasum flexibility (#78)
* Update validation to remove VERSION * Update to match SHASUM recommendation * Bump to 1.1.5
1 parent 9012e4c commit ab0646f

File tree

4 files changed

+9
-4
lines changed

4 files changed

+9
-4
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## 1.1.5
2+
**Fixes**
3+
- #78 Update validation regex and add shasum flexibility
4+
15
## 1.1.4
26
**Features**
37
None

package-lock.json

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "codecov-circleci-orb",
3-
"version": "1.1.4",
3+
"version": "1.1.5",
44
"description": "Codecov CircleCI Orb",
55
"main": "index.js",
66
"devDependencies": {

src/@orb.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,11 @@ commands:
4848
- run:
4949
name: Validate Codecov Bash Uploader
5050
command: |
51-
VERSION=$(grep 'VERSION=\".*\"' codecov | cut -d'"' -f2);
51+
VERSION=$(grep 'VERSION=\"[0-9\.]*\"' codecov | cut -d'"' -f2);
5252
for i in 1 256 512
5353
do
54-
shasum -a $i -c --ignore-missing <(curl -s https://raw.githubusercontent.com/codecov/codecov-bash/${VERSION}/SHA${i}SUM)
54+
shasum -a $i -c --ignore-missing <(curl -s https://raw.githubusercontent.com/codecov/codecov-bash/${VERSION}/SHA${i}SUM) ||
55+
shasum -a $i -c <(curl -s https://raw.githubusercontent.com/codecov/codecov-bash/${VERSION}/SHA${i}SUM)
5556
done
5657
- when:
5758
condition: << parameters.file >>

0 commit comments

Comments
 (0)