mirror of
https://github.com/ClementTsang/bottom
synced 2024-11-27 06:30:19 +00:00
380571cf73
- Fix bug with choco and homebrew using incorrect bash syntax causing broken downloads. Why this didn't fail, idk. - Add tag entry for manual runs to make it easier to deploy/re-run - Fixed some typos - Fixed incorrect string in choco python script
40 lines
1.3 KiB
YAML
40 lines
1.3 KiB
YAML
# 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
|
|
|
|
on:
|
|
release:
|
|
types: [published]
|
|
|
|
jobs:
|
|
post-deploy:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Set env
|
|
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
|
|
|
|
- name: Test env
|
|
run: |
|
|
echo $RELEASE_VERSION
|
|
|
|
- name: Make sure you're not on master...
|
|
run: |
|
|
if [[ $RELEASE_VERSION == "master" ]]; then
|
|
exit 1
|
|
fi
|
|
|
|
- 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"'" } }'
|