Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nested zip files #26

Open
lauramariel opened this issue May 1, 2023 · 1 comment
Open

nested zip files #26

lauramariel opened this issue May 1, 2023 · 1 comment

Comments

@lauramariel
Copy link

I'm doing something like this but when I download the artifact it contains seedPC.zip again. What am I missing?

seedPC.zip -> unzip -> seedPC.zip -> unzip -> contents of lab directory

      - name: Easy Zip Files
        # You may pin to the exact commit or the version.
        # uses: vimtor/action-zip@5f1c4aa587ea41db1110df6a99981dbe19cee310
        uses: vimtor/action-zip@v1
        with:
          # Files or directories to zip
          files: assets/lab
          # Name of output zip file
          dest: seedPC.zip
          # Whether to add subdirectories to simply zip all files to the root
          recursive: true
     
      - name: Upload SeedPC
        uses: actions/upload-artifact@v1
        with:
          name: seedPC
          path: ${{ github.workspace }}/seedPC.zip
@lauranutanix
Copy link

lauranutanix commented May 1, 2023

Nevermind, I just needed to RTFM - it's because of upload-artifact

During a workflow run, files are uploaded and downloaded individually using the upload-artifact and download-artifact actions. However, when a workflow run finishes and an artifact is downloaded from either the UI or through the download api, a zip is dynamically created with all the file contents that were uploaded. There is currently no way to download artifacts after a workflow run finishes in a format other than a zip or to download artifact contents individually. One of the consequences of this limitation is that if a zip is uploaded during a workflow run and then downloaded from the UI, there will be a double zip created.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants