Skip to content

Instantly share code, notes, and snippets.

@aabed
Created May 14, 2021 13:38
Show Gist options
  • Save aabed/d3663716166645f7a3252691e7a20e01 to your computer and use it in GitHub Desktop.
Save aabed/d3663716166645f7a3252691e7a20e01 to your computer and use it in GitHub Desktop.
Test Github Actions With Force Push
function replay() {
git add .;git commit --amend -m "testing pipeline";git push origin $(git branch --show-current) -f;sleep 5;gh run list | grep $(git branch --show-current)| head -n1 |awk '{print $NF}' |xargs -I {} gh run view {} | tail -1
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment