Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Pilot Lvl 1
Message 1 of 3

How do I create a GitHub Action for the marketplace using Python?

Solved! Go to Solution.

I want to upload my action to the marketplace, so that whenever someone uses the action it should run a python script. This is how many action.yml looks like so far

 

name: Check URLs
author: Param Thakkar
description: Automatically check for broken links in markdown files
inputs: 
  markdown_files:
    description: 'A list of all the markdown files in the repo, separated by commas. Defaults to README.md'
    required: false
    default: 'README.md'
  blacklisted_links:
    description: 'A comma-separated list of URLs to skip over.'
    required: false
runs:
  using: python
  main: entrypoint.py
branding:
  icon: 'link'
  color: 'green'

However, I am not able to 'Publish to Marketplace' when creating a new release. I have GitHub actions enabled on my user account... What am I missing here?

 

P.S. my repo is private. Could that be why it's not letting me upload to Marketplace?

2 Replies
Highlighted
Solution
Community Manager
Message 2 of 3

Re: How do I create a GitHub Action for the marketplace using Python?

Hi @paramt,

 

Thank you for being here! Publishing an action to the GitHub Marketplace requires that the action lives in your public repository's root directory and it exists alone in that repository without other actions. To learn more about building GitHub Actions, see "Creating GitHub Actions."


Best,
AndreaG

Mark helpful posts with Accept as Solution to help other users locate important info. Don't forget to give Kudos for great content!

Highlighted
Pilot Lvl 1
Message 3 of 3

Re: How do I create a GitHub Action for the marketplace using Python?

The problem was that the repo wasn't public. Thanks!