This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Github Action skippable job example | |
on: | |
pull_request: | |
types: [synchronize] | |
jobs: | |
job1: | |
name: Step 1 | |
runs-on: ubuntu-latest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# To use the following command put this at the bottom of your .bashrc then run `gits` | |
alias git_latest="git for-each-ref --sort=-committerdate --format='%(refname:short)' refs/heads" | |
gits() { | |
top_n=10 | |
if [ $# -eq 1 ] ; then | |
top_n=$1 | |
fi |