Is it possible to test a Github action without publishing it on marketplace? #26073
-
My current develop-test iterations while creating a Github action is as follows:
As you can imagine, step #3 happens a lot because this is a development cycle and you may not know how to do some operations, how to pass variables, how to run steps/jobs, etc… all in advance. So you iterate tons of times when you’re creating a Github action. Is there a way to shorten this lifecycle? Can we somehow test the actions we create, before publishing them on the marketplace and having to create version after version? This would immensely reduce the development time for your action creators. Thank you in advance! |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 1 reply
-
Hi @aslisabanci, Based on the doc of publishing marketplace, your action repository should be public. Github actions supports git ref/sha/tag version for the usage: {owner}/{repo}@{ref}(doc here). Hence, before you publich the action to marketplace, you can use Thanks |
Beta Was this translation helpful? Give feedback.
-
Thanks for the answer @weide-zhou! Yes my action repository is public, because I cannot otherwise publish it on the marketplace as you said. I didn’t know that {owner}/{repo}@{ref} usage works before/without publishing the action on the marketplace though. If this is made clear on the “Creating Actions” section of the documentation, I’m sure it would help many others suffering from the same thing as me. |
Beta Was this translation helpful? Give feedback.
-
Thanks for your quick reply @aslisabanci! According to the policy, it’s recommended to raise a feedback ticket in below link where github product manager will take a review, it will promote the improvement of the doc. https://support.github.com/contact/feedback?contact[category]=actions You can also mark the answer then it could help other guys who have same query. 😀 |
Beta Was this translation helpful? Give feedback.
-
Private actions are on the roadmap for Q1 2021: Actions: Use actions from private repositories
Summary This feature enables users to reference actions in private repositories, without having to publish those actions to the GitHub Marketplace. Intended Outcome Currently,...
actions
all
cloud
code-to-cloud
ga
|
Beta Was this translation helpful? Give feedback.
Hi @aslisabanci,
Based on the doc of publishing marketplace, your action repository should be public.
Github actions supports git ref/sha/tag version for the usage: {owner}/{repo}@{ref}(doc here). Hence, before you publich the action to marketplace, you can use
{owner}/{repo}@sha
to have a test. Publish it untill it works as expected.Thanks