feat: add GitHub action autodiscovery plugin#1964
Conversation
Signed-off-by: Olblak <me@olblak.com>
Signed-off-by: Olblak <me@olblak.com>
Signed-off-by: Olblak <me@olblak.com>
Signed-off-by: Olblak <me@olblak.com>
Signed-off-by: Olblak <me@olblak.com>
…datecli into add/autodiscovery/githubaction
Signed-off-by: Olblak <me@olblak.com>
Signed-off-by: Olblak <me@olblak.com>
|
Spotted an interesting issue when using on Gitea/Forgejo. |
Signed-off-by: Olblak <me@olblak.com>
This commit also clean up spec comment and remove unused token variable Signed-off-by: Olblak <me@olblak.com>
…datecli into add/autodiscovery/githubaction
Signed-off-by: Olblak <me@olblak.com>
|
I think I spot a bug. The problem is probably not related to the current pullrequest but instead after the go templating that remove single quotes around the file name |
Add failing e2e
Signed-off-by: Olblak <me@olblak.com>
Signed-off-by: Olblak <me@olblak.com>
Signed-off-by: Olblak <me@olblak.com>
|
Thanks @loispostula for the hints. Also, I added the ability to use either "github/action" or "gitea/action" but only "github/action" is enabled by default in the autodiscovery as it would otherwise generate duplicated manifest. |
|
I think the pullrequest is now ready. |
This pullrequest add a new autodiscovery plugin for handling GitHub action update
It supports both the GitHub action and Gitea variant.
Here is an example of configuration
Please note that credentials are fetched from the environment variable by default.
For 'github.com', the default value is set to first environment detected
For 'gitea.com' and 'codeberg.org', the default value is set to first environment detected
Test
To test this pull request, you can run the following commands:
Additional Information
Tradeoff
/
Potential improvement
Potential improvement would be to improve the gitearelease and githubrelease Updatecli plugin to work without credentials such as #1417.