diff --git a/github/download-previous-artifacts/action.yaml b/github/download-previous-artifacts/action.yaml index 60fa3ad..3a396d4 100644 --- a/github/download-previous-artifacts/action.yaml +++ b/github/download-previous-artifacts/action.yaml @@ -25,7 +25,6 @@ runs: steps: - run: | ls -al "${{ github.action_path }}" - cp "${{ github.action_path }}/download-previous-artifact.js" "${{ github.workspace }}/__download-previous-artifact.js" shell: bash - name: "Download artifacts." uses: https://github.com/actions/github-script@v6 @@ -36,6 +35,6 @@ runs: UNZIP_DIR: ${{ inputs.unzipDir }} with: script: | - const script = require('__download-previous-artifact.js') + const script = require('${{ github.action_path }}/download-previous-artifacts.js') await script({github, context, core}) shell: node