From 03c82640688e680597ac3f0464208ffe6ec4b418 Mon Sep 17 00:00:00 2001 From: Hiromu OCHIAI Date: Tue, 1 Jun 2021 17:16:47 +0900 Subject: [PATCH] =?UTF-8?q?Formula=E3=81=AE=E6=9B=B4=E6=96=B0=E3=82=92?= =?UTF-8?q?=E8=87=AA=E5=8B=95=E5=8C=96=E3=81=97=E3=81=A6=E3=81=8F=E3=82=8C?= =?UTF-8?q?=E3=81=AD=E3=81=88=E3=81=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/release.yml | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9ca2fe6..bf88294 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -52,6 +52,23 @@ jobs: -H "Content-Type: application/zip" \ --data-binary @${{ env.RELEASE_FILE }} \ "https://uploads.github.com/repos/otiai10/amesh/releases/${{ env.RELEASE_ID }}/assets?name=${{ env.RELEASE_FILE }}" - - name: Sha + - name: Trigger Formula Update run: | - openssl sha256 ${{ env.RELEASE_FILE }} + FORMULA=amesh + VERSION=${{ env.RELEASE_TAG }} + SHA256=`openssl sha256 ${{ env.RELEASE_FILE }}` + ZIP_URL="https://github.com/otiai10/amesh/releases/download/${{ env.RELEASE_TAG }}/${{ env.RELEASE_FILE }}" + curl -XPOST \ + -u "otiai10:${{ secrets.PERSONAL_ACCESS_TOKEN }}" \ + -H "Accept: application/vnd.github.everest-preview+json" \ + -H "Content-Type: application/json" \ + https://api.github.com/repos/otiai10/homebrew-tap/dispatches \ + -d "{ + \"event_type\": \"package_update\", + \"client_payload\": { + \"formula\": \"${FORMULA}\", + \"version\": \"${VERSION}\", + \"zip_url\": \"${ZIP_URL}\", + \"sha256\": \"${SHA256}\" + } + }"