Skip to content

Commit 5b340b1

Browse files
committed
Fix repository dispatch (hopefully)
1 parent 75590da commit 5b340b1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/custopize.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
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

0 commit comments

Comments
 (0)