- Launch Automator
- Create New Document
- Create a new Quick Action (Select "Quick Action")
- Add the Action Workflow receives
current files or folders
inFinder
- If desired, add custom image/icon (see comment below)
- Add a new
Run Shell Script
action to the workflow. - Configure the Workflow
ref: https://gist.github.com/lukechilds/a83e1d7127b78fef38c2914c4ececc3c
#!/bin/bash
get_latest_version(){
curl "https://api.github.com/repos/$1/releases" -s \
| jq -r ".[].tag_name" \
| sort -nr \
| head -n 1
Python utility to delete GitHub Actions runs for a repository, based on parameters. The GitHub UI currently allows removal of individual workflow runs, but this becomes tedious with a bulk of previous runs. Credit: https://gist.github.com/magnetikonline/2242eb18bf8890e9fc72b3c3ef41bd93
- Create a Personal access token allowing the
workflow
scope: - Execute the script against a target GitHub repository (with optional parameters).
This file contains hidden or 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
#!/bin/bash | |
## assumes "multiple repos" are all in the same parent directory, which is also the current working directory | |
# set up git | |
for dir in ./*/; do | |
dir=${dir%*/} # remove the trailing "/" | |
cd "$dir" | |
echo "$dir" | |
git fetch -p && git pull |
OlderNewer