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

How to setup on tree structure defaults working directory? #3

Open
daniel-codebrick opened this issue Jul 23, 2021 · 0 comments
Open

Comments

@daniel-codebrick
Copy link

My repository structure is like below:

  • parent
    • .github/workflows\render-md-mermaid.yml
    • child1 <--- just for this specific child1 folder
      • images
        • child1_child
          • README.md <---
        • README.md <---
    • child2
      - README.md
    • ...
    • README.md
...
on: 
  push:
    paths:
      - child1/**
jobs:
  render-md-mermaid:
    runs-on: ubuntu-latest
    defaults:
      run:
         working-directory: ./child1 # not working

    steps:
      - name: Checkout code
        uses: actions/checkout@v2

      - name: Render images for every Mermaid diagram in all Markdown files (*.md) in the repo
        uses: nielsvaneck/render-md-mermaid@v1

      - name: Commit rendered png and svg files
        uses: stefanzweifel/git-auto-commit-action@v4
        with:
          repository: ./child1/images
          commit_message: automatically rendered mermaid diagrams

Is there a solution to have a specific working directory with args?
I tried to clone your git repository and change shell find script in 'render-md-mermaid.mk'.
The action works successful but didn't create png and svg.

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

1 participant