Skip to content

Commit

Permalink
Fix repository dispatch (hopefully)
Browse files Browse the repository at this point in the history
  • Loading branch information
foosel committed Sep 13, 2021
1 parent 75590da commit 5b340b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/custopize.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
let release = null;
let version = '';
if (context.eventName === "respository_dispatch" && context.payload.type === "octopi_release") {
if (context.eventName === "respository_dispatch" && context.action === "octopi_release") {
version = context.payload.client_payload.version;
console.log(`Version from repository dispatch: ${version}`);
} else if (context.eventName === "workflow_dispatch") {
Expand Down Expand Up @@ -105,7 +105,7 @@ jobs:
- name: "🔎 Determine OctoPrint version"
run: |
if [[ "${{ github.event_name }}" = "repository_dispatch" && "${{ github.event.client_payload.type }}" = "octopi_release" ]]; then
if [[ "${{ github.event_name }}" = "repository_dispatch" && "${{ github.event.action }}" = "octoprint_release" ]]; then
OCTOPRINT_VERSION="${{ github.event.client_payload.version }}"
echo "Version from repository dispatch: $OCTOPRINT_VERSION"
else
Expand Down

0 comments on commit 5b340b1

Please sign in to comment.