Skip to content

make it possible to run pre and post commands #7

@marten-seemann

Description

@marten-seemann

Running the same command in every directory is a bit limiting. For example, when creating git commits, what we actually want to do is collect files from all directories (git add), and then just git commit once.
This happened here for example: ipfs/go-datastore#179.

Proposed API:

steps:
  - name: Code Quality Checks
    uses: protocol/multiple-go-modules@master
    with:
      working-directory: scripts
      pre: echo "I'm only run once, in the parent directory"
      run: touch file && git add file
      post: git commit -m "add a file per directory"

@mvdan, what do you think?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions