Use workflow_dispatch over repository_dispatch as it lets us specify branch

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
Michael Telatynski 2024-06-25 14:31:30 +01:00
parent 76416ec7b9
commit 0845c515c4
No known key found for this signature in database
GPG key ID: A2B008A5F49F5D0D

View file

@ -30,11 +30,13 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Notify element-desktop repo that element-web release has completed to re-trigger release-drafter - name: Notify element-desktop repo that element-web release has completed to re-trigger release-drafter
uses: peter-evans/repository-dispatch@ff45666b9427631e3450c54a1bcbee4d9ff4d7c0 # v3 uses: benc-uk/workflow-dispatch@25b02cc069be46d637e8fe2f1e8484008e9e9609 # v1
with: with:
token: ${{ secrets.ELEMENT_BOT_TOKEN }} workflow: release-drafter.yml
repository: element-hq/element-desktop repo: element-hq/element-desktop
event-type: upstream-release-notify ref: staging
# Required when using the `repo` option. Either a PAT or a token generated from the GitHub app or CLI
token: "${{ secrets.ELEMENT_BOT_TOKEN }}"
check: check:
name: Post release checks name: Post release checks