ci: Fix release publish trigger (#3524)

Looks like event payloads need to be prefixed with `github.event` to get the actual payload contents. Didn't dig deep enough.

https://help.github.com/en/actions/reference/context-and-expression-syntax-for-github-actions#github-context
This commit is contained in:
Francis Lavoie 2020-06-26 16:00:54 -04:00 committed by GitHub
parent c9049bdc24
commit caca55e582
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -22,7 +22,7 @@ jobs:
token: ${{ secrets.REPO_DISPATCH_TOKEN }} token: ${{ secrets.REPO_DISPATCH_TOKEN }}
repository: caddyserver/dist repository: caddyserver/dist
event-type: release-tagged event-type: release-tagged
client-payload: '{"tag": "${{ github.release.tag_name }}"}' client-payload: '{"tag": "${{ github.event.release.tag_name }}"}'
- name: Trigger event on caddyserver/caddy-docker - name: Trigger event on caddyserver/caddy-docker
uses: peter-evans/repository-dispatch@v1 uses: peter-evans/repository-dispatch@v1