Skip to content

1.2.0

1.2.0 #2

Workflow file for this run

name: update
on:
release:
types: [released]
jobs:
update:
runs-on: ubuntu-latest
steps:
- name: sha256
run: |

Check failure on line 12 in .github/workflows/update.yml

View workflow run for this annotation

GitHub Actions / update

Invalid workflow file

The workflow is not valid. .github/workflows/update.yml (Line: 12, Col: 14): Unexpected symbol: '@'. Located at position 29 within expression: github.event.release.assets[@]
for asset in "${{ github.event.release.assets[@] }}"
do
if [[ "${asset.name}" =~ \.dmg$ ]]; then
SHA256=$(curl -L "${asset.browser_download_url}" | sha256sum | cut -d ' ' -f 1)
echo "sha256=${SHA256}" >> $GITHUB_OUTPUT
fi
done
- 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 }}"}}'