Docker action as one of the steps?

Hello,

Please take look at the logical flow of my action:

jobs:
  CreateModPackagesUploadToRelease:
    runs-on: ubuntu-latest
    steps:

      - name: Clone repository
        uses: actions/checkout@master

      - name: Create package
        id: CreatePackage
        run: |
          <custom code>
      - name: Upload zip package to release
        uses: svenstaro/upload-release-action@v1-release
        with:
          repo_token: ${{ secrets.GITHUB_TOKEN }}
          file: ${{ steps.CreatePackage.outputs.PackageName }}
          asset_name: ${{ steps.CreatePackage.outputs.PackageName }}
          tag: ${{ github.ref }}

Notice the step: CreatePackage

This action creates test.zip file and variable PackageName is assigned to the filename via “##[set-output name=PackageName;]$($PackageName)”. So the next task (“Upload zip package to release”) can get this file from GitHub-hosted runner.

Question:

Is there a way to replace “CreatePackage” action via “Docker” action?

Does “Docker” actions can be chained like that? As a extra step?

If yes, then how to access container filesystem in order to get test.zip file path for “Upload zip package to release” task?

I tested this docker action (https://github.com/montudor/action-zip) to create a zip package with zip command, according to the result, the zip file is located in hosted runner workspace, not in container filesystem.

So I could find the path when upload it .

create zip .png

What’s your docker action like? If you meet any issue with it, please share the action link and your whole workflow yml content here. It will be helpful for me to investigate your question.