mirror of
https://github.com/codecov/codecov-action.git
synced 2025-12-08 16:16:24 +00:00
Update validation regex and bump to 1.4.1
This commit is contained in:
@@ -1,3 +1,7 @@
|
|||||||
|
## 1.4.1
|
||||||
|
## Fixes
|
||||||
|
- #287 Update VERSION regex to restrict on digits and dot
|
||||||
|
|
||||||
## 1.4.0
|
## 1.4.0
|
||||||
### Features
|
### Features
|
||||||
- #282 Add checksum verification of bash script
|
- #282 Add checksum verification of bash script
|
||||||
|
|||||||
2
dist/index.js
vendored
2
dist/index.js
vendored
@@ -49280,7 +49280,7 @@ var calculateChecksum = function (body, i) {
|
|||||||
return shasum.digest('hex') + " codecov";
|
return shasum.digest('hex') + " codecov";
|
||||||
};
|
};
|
||||||
var getVersion = function (body) {
|
var getVersion = function (body) {
|
||||||
var regex = /VERSION="(.*)+"/g;
|
var regex = /VERSION="([\d\.]+)"/g;
|
||||||
var match = regex.exec(body);
|
var match = regex.exec(body);
|
||||||
return match ? match[1] : null;
|
return match ? match[1] : null;
|
||||||
};
|
};
|
||||||
|
|||||||
2
package-lock.json
generated
2
package-lock.json
generated
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "codecov-action",
|
"name": "codecov-action",
|
||||||
"version": "1.4.0",
|
"version": "1.4.1",
|
||||||
"lockfileVersion": 1,
|
"lockfileVersion": 1,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "codecov-action",
|
"name": "codecov-action",
|
||||||
"version": "1.4.0",
|
"version": "1.4.1",
|
||||||
"description": "Upload coverage reports to Codecov from GitHub Actions",
|
"description": "Upload coverage reports to Codecov from GitHub Actions",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ const calculateChecksum = (body, i) => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const getVersion = (body) => {
|
const getVersion = (body) => {
|
||||||
const regex = /VERSION="(.*)+"/g;
|
const regex = /VERSION="([\d\.]+)"/g;
|
||||||
const match = regex.exec(body);
|
const match = regex.exec(body);
|
||||||
return match ? match[1] : null;
|
return match ? match[1] : null;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user