File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -68,18 +68,24 @@ runs:
68
68
- name : Merge/approve PR
69
69
uses : actions/github-script@v7
70
70
id : approver
71
+ env :
72
+ ACTION_PATH : ${{ github.action_path }}
73
+ UPDATE_TYPE : ${{ steps.dependabot-metadata.outputs.update-type }}
74
+ DEPENDENCY_TYPE : ${{ steps.dependabot-metadata.outputs.dependency-type }}
75
+ DEPENDENCY_NAMES : ${{ steps.dependabot-metadata.outputs.dependency-names }}
71
76
with :
72
77
github-token : ${{ inputs.github-token }}
73
78
script : |
74
- const script = require('${{ github.action_path }}/dist/index.js')
79
+ const { ACTION_PATH, UPDATE_TYPE, DEPENDENCY_TYPE, DEPENDENCY_NAMES } = process.env
80
+ const script = require(ACTION_PATH + '/dist/index.js')
75
81
await script({
76
82
github,
77
83
context,
78
84
inputs: ${{ toJSON(inputs) }},
79
85
dependabotMetadata: {
80
- updateType: '${{ steps.dependabot-metadata.outputs.update-type }}' ,
81
- dependencyType:'${{ steps.dependabot-metadata.outputs.dependency-type }}' ,
82
- dependencyNames: '${{ steps.dependabot-metadata.outputs.dependency-names }}' ,
86
+ updateType: UPDATE_TYPE ,
87
+ dependencyType: DEPENDENCY_TYPE ,
88
+ dependencyNames: DEPENDENCY_NAMES ,
83
89
}
84
90
})
85
91
You can’t perform that action at this time.
0 commit comments