For example, I have texts which I want to wrap into static HTML templates.
So, for every pushed file in a source folder /in/ I want to process it, for example, with bash, writing the result with the same path/name in another folder of my repository, /out/. I imagine something like this:
name: process on: push: paths: - 'in/**' jobs: wrap: name: Wrapping a text in the template runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 (???) - ??? FOR EVERY CHANGED .html FILE: - run: cat template/header.html >out/<PATH/NAME>.html - run: cat in/<PATH/NAME>.html >>out/<PATH/NAME>.html - run: cat template/footer.html >>out/<PATH/NAME>.html
In all the docs and StackOverflow I haven’t found how to do that. I have no thorough knowledge of github.ref or whatever should be used (if it’s viable at all?).
Could someone enlighten me?
It seems to be pretty basic and straightforward task, but maybe Actions is just not the proper instrument for that?