ci: Fix broken env calls in Actions

This commit is contained in:
ClementTsang 2020-08-24 02:09:52 -04:00
parent a9e02677ca
commit 421e5cb4d6

View file

@ -6,7 +6,7 @@ on:
types: [published] types: [published]
jobs: jobs:
set_env: deploy:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
@ -27,17 +27,17 @@ jobs:
with: with:
repo_token: ${{ secrets.BOTTOM_PACKAGE_DEPLOYMENT }} repo_token: ${{ secrets.BOTTOM_PACKAGE_DEPLOYMENT }}
file: bottom.rb file: bottom.rb
tag: $RELEASE_VERSION tag: ${{ RELEASE_VERSION }}
overwrite: true overwrite: true
- name: Trigger homebrew - name: Trigger homebrew
run: | run: |
curl -X POST https://api.github.com/repos/ClementTsang/homebrew-bottom/dispatches \ curl -X POST https://api.github.com/repos/ClementTsang/homebrew-bottom/dispatches \
-H 'Accept: application/vnd.github.everest-preview+json' \ -H 'Accept: application/vnd.github.everest-preview+json' \
-u ${{ secrets.BOTTOM_PACKAGE_DEPLOYMENT }} \ -u ${{ secrets.BOTTOM_PACKAGE_DEPLOYMENT }} \
--data '{ "event_type": "update", "client_payload": { "version": "'"$RELEASE_VERSION"'" } }' --data '{ "event_type": "update", "client_payload": { "version": "$RELEASE_VERSION" } }'
- name: Trigger choco - name: Trigger choco
run: | run: |
curl -X POST https://api.github.com/repos/ClementTsang/choco-bottom/dispatches \ curl -X POST https://api.github.com/repos/ClementTsang/choco-bottom/dispatches \
-H 'Accept: application/vnd.github.everest-preview+json' \ -H 'Accept: application/vnd.github.everest-preview+json' \
-u ${{ secrets.BOTTOM_PACKAGE_DEPLOYMENT }} \ -u ${{ secrets.BOTTOM_PACKAGE_DEPLOYMENT }} \
--data '{ "event_type": "update", "client_payload": { "version": "'"$RELEASE_VERSION"'" } }' --data '{ "event_type": "update", "client_payload": { "version": "$RELEASE_VERSION" } }'