How to share domain code between GitHub Actions #69
josecelano
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We have been building a proof of concept with some GitHub Actions. Right now every action is totally decoupled from the rest. We are going to need a way to share domain login between actions.
We already have an example. We have a duplicate code for parsing the image filename. We need to parse the filename in the validate-filename action and also in the validate-gold-image-folder action.
validate-filename: https://github.com/Nautilus-Cyberneering/chinese-ideographs/blob/main/.github/actions/validate-filenames/src/validation/validate_filenames.py#L62-L67:
validate-gold-image-folder:
https://github.com/Nautilus-Cyberneering/chinese-ideographs/pull/63/files#diff-23d71a228dcc178c2a592fc013ea7d194c7b4156df02ce237b90ce4453b52003R6-R11
We have already been discussing some solutions:
validate-filenames
andvalidate-gold-image-folder
could be that type of actions.dvc-diff
andresize-image
seem to be more generic.Current code structure:
Beta Was this translation helpful? Give feedback.
All reactions