Skip to content

Commit 3135505

Browse files
use env var process.env.GITHUB_ACTION_PATH instead
1 parent 60b52c1 commit 3135505

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ runs:
5656
with:
5757
script: |
5858
const path = require('path');
59-
console.log('github action path is ==================', '${{github.action_path}}')
60-
const utilsPath = path.join(`${{github.action_path}}`.replace(/\\/g, '/'), 'lib', 'utils.js')
59+
console.log('github action path is ==================', process.env.GITHUB_ACTION_PATH)
60+
const utilsPath = path.join(process.env.GITHUB_ACTION_PATH, 'lib', 'utils.js')
6161
const {setupAuth} = require(utilsPath)
6262
setupAuth(core)
6363
env:

0 commit comments

Comments
 (0)