Coder Social home page Coder Social logo

actions-cli's Introduction

actions-cli's People

Contributors

bump-version avatar qaisjp avatar remorses avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

tsutsu

actions-cli's Issues

manual token?

Is there a way to set the token manually? I develop on a remote server, so localhost doesn't work for me.

Request: low permission login option

Currently the login process grants permission to "read and write all public and private repository data" -- which is more than I'm willing to give, especially considering I only want to check on public projects.

Can we get a more limited option for permissions granting?

Unable to watch progress on manually-triggered workflows

We have a workflow that is manually triggered by a CLI command. The CLI command uses cURL to create a workflow_dispatch event, which in turn triggers an Actions workflow that is triggered on: workflow_dispatch.

The repo does not have any new commit or tag associated with this workflow. The workflow is running against the "existing" repo, rather than because something in the repo changed.

actions-cli seems to discover these workflow-runs successfully โ€”ย but it doesn't understand how to deal with the fact that there are a large number of them associated with the same "existing" commit. So rather than the currently-executing run, actions-cli shows me a random old already-complete run of the same workflow.

Potential fixes

  • You could allow the user to directly pass a workflow_id; the tool could then make an API call to /repos/{repo}/actions/workflows/{workflow_id}/runs, and select the newest run of the returned set (i.e. the one with the highest run_number.)

  • You could allow the user to directly pass run_id. The user would have to get that run_id from somewhere (maybe making Github API calls themselves); but, presuming they did (or some script did it for them), then they'd be assured to be targeting exactly the run they want to watch the progress of.

(Both of these cases would also be made even more useful by the --block-until-found switch I proposed in #8.)

Seeing old complete runs rather than runs in progress, when a run hasn't started yet

I have a script that pushes a tag, and then immediately calls actions-cli to watch the deploy workflow triggered on: create of that tag.

Right now, I need to insert a sleep in my script, because without it, actions-cli just finds the newest existing run (the one from the last deploy), shows it, and exits.

Although my tag has already been pushed, the relevant workflow-run gets created asynchronously on Github's side, and it seemingly takes a few seconds. So if I invoke actions-cli right away, the new run isn't available yet. Instead, it just sees the old runs, and assumes I wanted to see the newest of those.

But of course, I actually want to see the new run; and if hasn't been created yet, I want actions-cli to wait around until it does get created, and then show its progress.

Proposed fix

  • Add a timestamp-valued switch to actions-cli, which will tell it to ignore or avoid matching any workflow-runs that were created before the passed timestamp.
  • Add a boolean switch, to tell actions-cli that if it fails to discover any non-ignored runs (as could happen with the above time-filter in place), it should not exit, but rather should poll the workflow-runs API endpoint until it does successfully find a workflow run that passes the filter.

With these two switches together, I wouldn't need the sleep in my script; instead, I could run e.g. actions-cli --runs-since=... --block-until-found, and it would just sit there until a new workflow-run starts, at which point it would then start logging the progress of that workflow-run.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.