Skip to content

Unexpected behaviour with files not tracked by Git #58

@Lewiscowles1986

Description

@Lewiscowles1986

Thank you for writing this cool GitHub action. I've been putting off seeing how it works until now, but I feel I now have a fairly good idea of it, along with some ways to use this to do something that was manual for me until this point 🏆 to you all.

Describe the bug

When generating or adding files to the filesystem in a github action, the files will not be deployed via SVN unless they are comitted to the repo.

Steps to Reproduce

  1. Before running this action, touch or cat to create a file
  2. Run this action
  3. Notice that the new file is missing

Expected behavior

Files added during release action are transferred automatically for principal of least surprise.

Additional context

I have a plugin with a non-trivial build step. It uses composer to get dependencies and then copies them into a folder.

At first I was blaming the php-actions/composer, but I added a step to check ls -lhaR and it showed my files. It was only after combing every line I realised what this was doing 😆. I Think it's kind of genius to use git archive in this way, but it does lead to user surprise so should likely be documented.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:bugSomething isn't working.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions