Add "content" to deploy-ha-addon-repo dispatch (#4349)

This commit is contained in:
Joakim Sørensen 2023-01-25 23:55:06 +01:00 committed by GitHub
parent d94e9d92ca
commit b27a328d1e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -142,11 +142,10 @@ jobs:
TOKEN: ${{ secrets.DEPLOY_HA_ADDON_REPO_TOKEN }} TOKEN: ${{ secrets.DEPLOY_HA_ADDON_REPO_TOKEN }}
# yamllint disable rule:line-length # yamllint disable rule:line-length
run: | run: |
TAG="${GITHUB_REF#refs/tags/}"
curl \ curl \
-u ":$TOKEN" \ -u ":$TOKEN" \
-X POST \ -X POST \
-H "Accept: application/vnd.github.v3+json" \ -H "Accept: application/vnd.github.v3+json" \
https://api.github.com/repos/esphome/home-assistant-addon/actions/workflows/bump-version.yml/dispatches \ https://api.github.com/repos/esphome/home-assistant-addon/actions/workflows/bump-version.yml/dispatches \
-d "{\"ref\":\"main\",\"inputs\":{\"version\":\"$TAG\"}}" -d '{"ref":"main","inputs":{"version":"${{ github.event.release.tag_name }}","content":${{ toJSON(github.event.release.body) }}}}'
# yamllint enable rule:line-length # yamllint enable rule:line-length