Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
actions/checkout@v3 was overwriting the workdir which also deleted the layout_src folder
fix: checkout to subfolder with
path: ./QMK-Compile
I decided to mount the github workspace folder at the same path to mimic the basic docker action behvaiour.
Now the parent can specify the artifact path as a full path (same inside the container used by entrypoint.sh) or as a relative path because of
working_dir: ${GITHUB_WORKSPACE}
I saw you wanted to add a fallback branch to firmware21 but that's the same as hardcoding the branch.
IMHO it's best to keep it empty as default to clone the latest default branch from zsa, which is always stable and backwards compatible.
Check out my take on oryx-macro-hax
I'm only extracting the relevant keymap files directly to layout_src, so you don't have to specify the layout folder every time as secret and inside the my-macros.ts . OryxId as input is enough. Also having my-illicit-macros for local edits was redundant.
Is there a reason you wanted the setup part inside the dockerfile? To my knowledge the docker image cannot be cached anyway, so you could do the setup inside entrypoint.sh where you have access to environment vars instead of build args. Then you can use the basic docker container again and safe a lot of code. See #4
Tested with and without fork / branch parameters. Checked the build console output and flashed the firmware to my moonlander with f20 and f21