-
Notifications
You must be signed in to change notification settings - Fork 4
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
Another attempt at dynamic matrix #14
Conversation
I would save yourself a bit of work here: https://github.com/philips-labs/list-folder-action That being said, that action is doing very similar, and is rather old so is using the legacy |
Lifesaver. Has an example too which is great. |
The terraform-docs@v1.0.0 is the only thing that uses |
If we want to roll our own, here's a cut-down version: determine-modules:
name: "Determine Terraform Modules"
runs-on: ubuntu-latest
outputs:
modules: ${{ steps.list-modules.outputs.modules }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Extract dirs from Terraform_Modules
id: list-modules
run: |
echo "modules=$(ls Terraform_modules | jq -R -s -c 'split("\n")[:-1]')" >> $GITHUB_OUTPUT |
Ah am I missing outputs? Ill get that in tomorrow. |
The latest thing I have is working, you need a seperate step for JQ as it's not installed as default on Ubuntu |
jq is installed by default in the base image, the example I posted is a complete job that does everything needed, see here: https://github.com/AnswerConsulting/AnswerKing-Infrastructure/actions/runs/4117096124/jobs/7107977458 |
No description provided.