diff --git a/README.md b/README.md index ebb5747..109f02d 100644 --- a/README.md +++ b/README.md @@ -57,7 +57,7 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Validate JIRA branch name and PR/commit consistency - uses: worksome/jira-branch-name-validator-action@v2.0.0 + uses: worksome/jira-branch-name-validator-action@v2 with: branch-name: ${{ github.event.pull_request.head.ref }} pr-title: ${{ github.event.pull_request.title }} diff --git a/action.yml b/action.yml index 6714700..7797dd1 100644 --- a/action.yml +++ b/action.yml @@ -14,7 +14,7 @@ inputs: description: The Jira project prefix. default: 'JIRA' runs: - using: 'node16' + using: 'node20' main: 'dist/github/index.js' branding: icon: 'git-branch' diff --git a/dist/github/index.js b/dist/github/index.js index 843a441..ea73cbc 100644 --- a/dist/github/index.js +++ b/dist/github/index.js @@ -558,7 +558,7 @@ class OidcClient { .catch(error => { throw new Error(`Failed to get ID Token. \n Error Code : ${error.statusCode}\n - Error Message: ${error.result.message}`); + Error Message: ${error.message}`); }); const id_token = (_a = res.result) === null || _a === void 0 ? void 0 : _a.value; if (!id_token) { diff --git a/package.json b/package.json index 262c43f..c319599 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@worksome/jira-branch-name-validator", - "version": "2.0.0", + "version": "2.1.0", "description": "A GitHub action for ensuring that the branch name contains a valid JIRA id", "main": "index.js", "scripts": { @@ -27,11 +27,11 @@ }, "homepage": "https://github.com/worksome/jira-branch-name-validator-action#readme", "dependencies": { - "@actions/core": "^1.2.6" + "@actions/core": "^1.10.1" }, "devDependencies": { - "@types/node": "^18.11.18", - "@vercel/ncc": "^0.36.0", - "typescript": "^4.9.4" + "@types/node": "^20.11.16", + "@vercel/ncc": "^0.38.1", + "typescript": "^5.3.3" } }