2020-11-26 08:28:56 +00:00
|
|
|
# A short amount of actions to run after releasing. This is mostly just to trigger other repos to run specific actions.
|
|
|
|
|
|
|
|
name: post-deploy script
|
2020-08-19 14:27:57 +00:00
|
|
|
|
|
|
|
on:
|
|
|
|
release:
|
|
|
|
types: [published]
|
|
|
|
|
|
|
|
jobs:
|
2020-11-21 20:31:19 +00:00
|
|
|
post-deploy:
|
2020-08-19 14:27:57 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2020-08-24 06:02:51 +00:00
|
|
|
- uses: actions/checkout@v2
|
2020-11-21 20:31:19 +00:00
|
|
|
|
2020-08-19 14:27:57 +00:00
|
|
|
- name: Set env
|
2020-11-21 00:36:39 +00:00
|
|
|
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
|
2020-11-21 20:31:19 +00:00
|
|
|
|
2020-08-19 14:27:57 +00:00
|
|
|
- name: Test env
|
|
|
|
run: |
|
|
|
|
echo $RELEASE_VERSION
|
2020-11-21 20:31:19 +00:00
|
|
|
|
2020-08-24 06:36:50 +00:00
|
|
|
- name: Make sure you're not on master...
|
|
|
|
run: |
|
|
|
|
if [[ $RELEASE_VERSION == "master" ]]; then
|
|
|
|
exit 1
|
|
|
|
fi
|
2020-11-21 20:31:19 +00:00
|
|
|
|
2021-02-18 06:18:04 +00:00
|
|
|
- name: Make sure you're not on nightly...
|
|
|
|
run: |
|
|
|
|
if [[ $RELEASE_VERSION == "nightly" ]]; then
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
2020-08-19 14:27:57 +00:00
|
|
|
- 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 }} \
|
2020-08-24 06:22:33 +00:00
|
|
|
--data '{ "event_type": "update", "client_payload": { "version": "'"$RELEASE_VERSION"'" } }'
|
2020-11-21 20:31:19 +00:00
|
|
|
|
2020-08-19 14:27:57 +00:00
|
|
|
- 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 }} \
|
2020-08-24 06:22:33 +00:00
|
|
|
--data '{ "event_type": "update", "client_payload": { "version": "'"$RELEASE_VERSION"'" } }'
|