bottom/.github/workflows/deploy.yml

29 lines
1 KiB
YAML
Raw Normal View History

2020-08-19 10:27:57 -04:00
name: Update Packages
on:
release:
types: [published]
jobs:
set_env:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Set env
2020-08-19 10:40:58 -04:00
run: echo ::set-env name=RELEASE_VERSION::${GITHUB_REF#refs/*/}
2020-08-19 10:27:57 -04:00
- name: Test env
run: |
echo $RELEASE_VERSION
- name: Trigger homebrew
run: |
curl -X POST https://api.github.com/repos/ClementTsang/homebrew-bottom/dispatches \
-H 'Accept: application/vnd.github.everest-preview+json' \
-u ${{ secrets.BOTTOM_PACKAGE_DEPLOYMENT }} \
--data '{ "event_type": "update", "client_payload": { "version": "'"$RELEASE_VERSION"'" } }'
- name: Trigger choco
run: |
curl -X POST https://api.github.com/repos/ClementTsang/choco-bottom/dispatches \
-H 'Accept: application/vnd.github.everest-preview+json' \
-u ${{ secrets.BOTTOM_PACKAGE_DEPLOYMENT }} \
--data '{ "event_type": "update", "client_payload": { "version": "'"$RELEASE_VERSION"'" } }'