4 Commits

Author SHA1 Message Date
agresdominik 4b21757e16 chore: bump 2026-03-23 20:34:44 +01:00
agresdominik 45f66a07ad feature: add json validity test 2026-03-23 20:29:14 +01:00
agresdominik 74304b926d feature: update list, bump version to test 2026-03-23 20:23:22 +01:00
agresdominik 3c5ae1ef2f feature: add CD to tap repo 2026-03-23 20:20:04 +01:00
4 changed files with 30 additions and 21 deletions
+5
View File
@@ -24,6 +24,11 @@ jobs:
go-version-file: go.mod
cache: true
- name: Validate command JSON files
run: |
jq empty data/commands.json
jq empty data/commands_template.json
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
with:
+20 -20
View File
@@ -83,25 +83,25 @@ jobs:
echo "Tarball URL : $URL"
echo "SHA256 : $SHA"
# - name: Checkout homebrew tap
# uses: actions/checkout@v4
# with:
# repository: TODO_GITHUB_USER/homebrew-myapps # TODO: your tap repo
# token: ${{ secrets.TAP_GITHUB_TOKEN }}
# path: tap
- name: Checkout homebrew tap
uses: actions/checkout@v4
with:
repository: agresdominik/repo
token: ${{ secrets.TAP_GITHUB_TOKEN }}
path: tap
#- name: Patch cheatsh formula
# run: |
# FORMULA="tap/Formula/cheatsh.rb"
# sed -i "s|url .*|url \"${{ steps.sha.outputs.url }}\"|" "$FORMULA"
# sed -i "s|version .*|version \"${{ inputs.version }}\"|" "$FORMULA"
# sed -i "s|sha256 .*|sha256 \"${{ steps.sha.outputs.sha }}\"|" "$FORMULA"
- name: Patch cheatsh formula
run: |
FORMULA="tap/Formula/cheatsh.rb"
sed -i "s|url .*|url \"${{ steps.sha.outputs.url }}\"|" "$FORMULA"
sed -i "s|version .*|version \"${{ inputs.version }}\"|" "$FORMULA"
sed -i "s|sha256 .*|sha256 \"${{ steps.sha.outputs.sha }}\"|" "$FORMULA"
#- name: Commit and push tap update
# run: |
# cd tap
# git config user.name "github-actions[bot]"
# git config user.email "github-actions[bot]@users.noreply.github.com"
# git diff --quiet && echo "Formula already up to date." && exit 0
# git commit -am "formula: bump cheatsh to v${{ inputs.version }}"
# git push
- name: Commit and push tap update
run: |
cd tap
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git diff --quiet && echo "Formula already up to date." && exit 0
git commit -am "chore: bump cheatsh to v${{ inputs.version }}"
git push
+1 -1
View File
@@ -1 +1 @@
0.1.0
0.1.2
+4
View File
@@ -223,6 +223,10 @@
{
"command": "pipx upgrade-all",
"desc": "Pip installed packages on system"
},
{
"command": "brew update",
"desc": "Brew installed own software"
}
],
"other installs": [