Skip to content

Commit

Permalink
[Java] Change the event type
Browse files Browse the repository at this point in the history
  • Loading branch information
vyazelenko committed Apr 1, 2020
1 parent 218c745 commit c1dc5a0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Publish a release to the Maven Central Repository
on:
repository_dispatch:
types: [release]
types: [publish_artifacts]

env:
GRADLE_OPTS: "-Dorg.gradle.daemon=false"
Expand Down
2 changes: 1 addition & 1 deletion publish_artifacts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ echo "Sending repository_dispatch command to publish artifacts: gitRef='${gitRef
curl -v -H "Accept: application/vnd.github.everest-preview+json" \
-H "Authorization: token ${GITHUB_TOKEN}" \
--request POST \
--data "{\"event_type\": \"release\", \"client_payload\": { \"gitRef\": \"${gitRef}\"}}" \
--data "{\"event_type\": \"publish_artifacts\", \"client_payload\": { \"gitRef\": \"${gitRef}\"}}" \
https://api.github.com/repos/real-logic/agrona/dispatches

0 comments on commit c1dc5a0

Please sign in to comment.