Skip to content

Instantly share code, notes, and snippets.

@dwelch2344
Last active December 5, 2023 23:03
Show Gist options
  • Save dwelch2344/3f4d6e5bd172e5f148e55a192e64e321 to your computer and use it in GitHub Desktop.
Save dwelch2344/3f4d6e5bd172e5f148e55a192e64e321 to your computer and use it in GitHub Desktop.
git add -A; \
git commit --amend --no-edit; \
git push -f; \
gh workflow run example-workflow.yml --ref example_branch; \
sleep 2; \
gh run list --json url --workflow=example-workflow.yml \
| jq -r '.[0].url' \
| xargs open
@dwelch2344
Copy link
Author

V2:

  • Line 9: pipe the url to open (passing the stdin as an input via xargs)

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