File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3030 let release = null;
3131
3232 let version = '';
33- if (context.eventName === "respository_dispatch" && context.payload.type === "octopi_release") {
33+ if (context.eventName === "respository_dispatch" && context.action === "octopi_release") {
3434 version = context.payload.client_payload.version;
3535 console.log(`Version from repository dispatch: ${version}`);
3636 } else if (context.eventName === "workflow_dispatch") {
@@ -105,7 +105,7 @@ jobs:
105105
106106 - name : " 🔎 Determine OctoPrint version"
107107 run : |
108- if [[ "${{ github.event_name }}" = "repository_dispatch" && "${{ github.event.client_payload.type }}" = "octopi_release " ]]; then
108+ if [[ "${{ github.event_name }}" = "repository_dispatch" && "${{ github.event.action }}" = "octoprint_release " ]]; then
109109 OCTOPRINT_VERSION="${{ github.event.client_payload.version }}"
110110 echo "Version from repository dispatch: $OCTOPRINT_VERSION"
111111 else
You can’t perform that action at this time.
0 commit comments