TheDoctor0/zip-release

File changed as we read it tar issue

Closed this issue · 2 comments

Hi @TheDoctor0,

Greetings.

I am getting an error when trying to compress a directory using the type tar. It seems when building the file it includes the file.tar.gz file during the process (that is being created in the same directory).

Run thedoctor0/zip-release@0.6.2
Run $GITHUB_ACTION_PATH/entrypoint.sh

📦 Creating tar archive...
./
./mymodule
./README.md
tar: .: file changed as we read it

⛔ Unable to create tar archive.
Error: Process completed with exit code [1]...

Parameters

- name: Archive Release tar
  uses: thedoctor0/zip-release@0.6.2
  with:
    type: "tar"
    filename: "${{ github.event.repository.name }}-mypkg-v${{ needs.versioning.outputs.sem_version }}.tar.gz"
    directory: src/mymodule
    exclusions: "${{ github.event.repository.name }}-mypkg-v${{ needs.versioning.outputs.sem_version }}.tar.gz"

Related post

Hi @dtcMLOps.
I added an option to extend the command with custom arguments - check custom argument documentation.

Hi @TheDoctor0,

The issue still persist with the custom parameter set