Skip to content

1.3.1

1.3.1 #5

Workflow file for this run

name: update
on:
release:
types: [released]
jobs:
update:
runs-on: ubuntu-latest
steps:
- name: sha256
run: |
browser_download_url=$(echo '${{ toJSON(github.event.release.assets) }}' | jq -r '.[] | select(.name | endswith(".dmg")) | .browser_download_url)
SHA256=$(curl -L "${browser_download_url}" | sha256sum | cut -d ' ' -f 1)
- name: dispatch
env:
GITHUB_TOKEN: ${{ secrets.HOMEBREW_MACSKK_TOKEN }}
run: |
curl \
-H "Authorization token $GITHUB_TOKEN" \
-H "Accept: application/vnd.github.v3+json" \
https://api.github.com/repos/mtgto/homebrew-macSKK/dispatches \
-d '{"event_type":"update","client_payload":{"version":"${{ github.event.release.tag_name }}","sha256":"${{ steps.sha256.outputs.sha256 }}"}}'