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

make it possible to run pre and post commands #7

Open
marten-seemann opened this issue Aug 17, 2021 · 1 comment
Open

make it possible to run pre and post commands #7

marten-seemann opened this issue Aug 17, 2021 · 1 comment

Comments

@marten-seemann
Copy link
Contributor

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?

@mvdan
Copy link

mvdan commented Aug 31, 2021

Why not do those pre/post steps as... regular job steps, before and after the multiple-go-modules action step? :)

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