Skip to content

From a GitHub Action workflow file add a button to see the workflow in action #3008

Closed

Description

@maelle

Thanks for refined-github!

Could a button help going from e.g. https://github.com/r-hub/docs/blob/master/.github/workflows/pr.yml to https://github.com/r-hub/docs/actions?query=workflow%3ACommands using the workflow name?

This way when trying to assess the use of an action, one would use GitHub search, then find workflow files, then from the files easily see logs of the action.

Activity

  1. added
    small
    and removed on Apr 15, 2020
  2. fregante commented on Apr 15, 2020

    @fregante
    Member

    Definitely. The UI around GH Actions is patchy.

    This feature should be very similar to html-preview-link

  3. maelle commented on Apr 15, 2020

    @maelle
    ContributorAuthor

    I know nothing about TypeScript (yet?) so I'm not sure I could help but is there an example of feature reading a YAML field from a document?

  4. fregante commented on Apr 15, 2020

    @fregante
    Member

    It doesn't have to be perfect, something like this should cover most cases:

    const actionName = 
    	$$('.blob-code-inner')
    		.find(line => line.textContent.startsWith('name'))
    		.textContent
    		.replace(/^name:\s+/, '')
    		.trim()

    Plus an extra .replace to trim quotes.

  5. maelle commented on Apr 16, 2020

    @maelle
    ContributorAuthor

    I'll give it a try then, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    acceptedenhancementsmall

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions