Repository navigation
Add option to watch workflow run progress #3559
Description
Activity
- addedcoreThis issue is not accepting PRs from outside contributorsThis issue is not accepting PRs from outside contributors
on May 3, 2021 I agree I think this is a common use case and we should support it. I am going to mark this as
coreas we will want to discuss options on what we want the UX to look like for this feature.Reacted by Kyle, Jake Lundberg and Sergey SemushinReacted by Alessandro Dal Grande and Jake Lundberg- changed the title
[-][Feature Request] - add option to watch in workflow run[/-][+]Add option to watch workflow run progress[/+]on Jun 27, 2022 Currently blocked on #4001
I'd definitely love a
gh workflow run -woption to bring up the browser to watch the run.Terminal would be cool too, but I'd want to see the detailed output rather than the summary provided by
gh run watchtoday.For the time being I think this will probably be good enough since the top entry in
run viewis usually the one I just triggered. Posting incase it helps anyone else:gh workflow run (run args); sleep 5; gh run view -wReacted by Mislav Marohnić- added a commit that references this issue
on Jan 20, 2023 I hacked up a workaround for this that works well enough locally: mik3y@6359338
It works by polling the the list of runs before and after, then selecting the first newly-appearing run. This is naturally a bit brittle due to #4001, though is already saving me plenty of time.
I'm happy to PR the code, with any suggested improvements, if something like this would be acceptable.
- added a commit that references this issue
on Feb 4, 2023 Done, I've PR'd the hack here: #6965
My workaround is this :
gh workflow run Sql-CreateNorthwindDb.yaml --field DB_IP="*" --field DB_NAME="*" --field MINI_VERSION="true" && sleep 5 && \ gh run list --workflow=Sql-CreateNorthwindDb.yaml --json databaseId --limit 1 | jq '.[].databaseId' | \ xargs gh run watch
can probably be wrapped in a function.
will break if multiple people run it at same time.
if anyone knows how to relibly get the id of the run I just launched that would be best.- addedgh-workflowrelating to the gh workflow commandrelating to the gh workflow command
on Oct 2, 2023 - added a commit that references this issue
on Oct 30, 2023 Does #12695 now unblock this?
Reacted by patleo and Jakub Kuczys
Describe the feature or problem you’d like to solve
When trigger a GitHub action workflow dispatch with
gh workflow run, I always want to watch it.Currently I can do
gh run listfind the ID and thengh run watch $Idorgh run watchand select the one I just triggered.Proposed solution
add option
gh workflow run --watchthat automatically does this.