Skip to content

Workflow file for this run

name: Trigger External Workflow on Release
on:
release:
types: [published]
jobs:
trigger-external-workflow:
runs-on: ubuntu-latest
steps:
- name: Trigger release workflow
if: github.event.release.prerelease == false
uses: peter-evans/repository-dispatch@v3
with:
token: ${{ secrets.GITHUBBOT_TOKEN }}
repository: daytonaio/daytona-release
event-type: new-release
client-payload: '{"release_tag": "${{ github.event.release.tag_name }}"}'
- name: Trigger prerelease workflow
if: github.event.release.prerelease == true
uses: peter-evans/repository-dispatch@v3
with:
token: ${{ secrets.GITHUBBOT_TOKEN }}
repository: daytonaio/daytona-release
event-type: new-prerelease
client-payload: '{"prerelease_tag": "${{ github.event.release.tag_name }}"}'