File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 30
30
let release = null;
31
31
32
32
let version = '';
33
- if (context.eventName === "respository_dispatch" && context.payload.type === "octopi_release") {
33
+ if (context.eventName === "respository_dispatch" && context.action === "octopi_release") {
34
34
version = context.payload.client_payload.version;
35
35
console.log(`Version from repository dispatch: ${version}`);
36
36
} else if (context.eventName === "workflow_dispatch") {
@@ -105,7 +105,7 @@ jobs:
105
105
106
106
- name : " 🔎 Determine OctoPrint version"
107
107
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
109
109
OCTOPRINT_VERSION="${{ github.event.client_payload.version }}"
110
110
echo "Version from repository dispatch: $OCTOPRINT_VERSION"
111
111
else
You can’t perform that action at this time.
0 commit comments