release

This page was generated based on Github’s Documentation. See our welcome page for context and details.

Github Event release #

Github Action Trigger #

source

Webhook event payloadActivity typesGITHUB_SHAGITHUB_REF
releasepublished
unpublished
created
edited
deleted
prereleased
released
Last commit in the tagged releaseTag ref of release refs/tags/<tag_name>

Note: More than one activity type triggers this event. For information about each activity type, see “Webhook events and payloads.” By default, all activity types trigger workflows that run on this event. You can limit your workflow runs to specific activity types using the types keyword. For more information, see “Workflow syntax for GitHub Actions.”

Note: Workflows are not triggered for the creatededited, or deleted activity types for draft releases. When you create your release through the GitHub browser UI, your release may automatically be saved as a draft.

Note: The prereleased type will not trigger for pre-releases published from draft releases, but the published type will trigger. If you want a workflow to run when stable and pre-releases publish, subscribe to published instead of released and prereleased.

Runs your workflow when release activity in your repository occurs. For information about the release APIs, see “Objects” in the GraphQL API documentation or “REST API endpoints for releases and release assets” in the REST API documentation.

For example, you can run a workflow when a release has been published.

on:
  release:
    types: [published]

Event Payload #

source

Activities: created, deleted, edited, prereleased, published, released, unpublished

Common Fields #

These fields are common to every event types available with this trigger.
fieldtyperequireddescription
github.event.enterpriseobjectoptional

An enterprise on GitHub. Webhook payloads contain the enterprise property when the webhook is configured on an enterprise account or an organization that’s part of an enterprise account. For more information, see “About enterprise accounts."

github.event.installationobjectoptional

The GitHub App installation. Webhook payloads contain the installation property when the event is configured for and sent to a GitHub App. For more information, see “Using webhooks with GitHub Apps."

github.event.organizationobjectoptional

A GitHub organization. Webhook payloads contain the organization property when the webhook is configured for an organization, or when the event occurs from activity in a repository owned by an organization.

github.event.releaseobjectrequired

The release object.

github.event.release.assetsarray of objectsrequired
github.event.release.assets.browser_download_urlstringrequired
github.event.release.assets.content_typestringrequired
github.event.release.assets.created_atstringrequired
github.event.release.assets.download_countintegerrequired
github.event.release.assets.idintegerrequired
github.event.release.assets.labelstring or nullrequired
github.event.release.assets.namestringrequired

The file name of the asset.

github.event.release.assets.node_idstringrequired
github.event.release.assets.sizeintegerrequired
github.event.release.assets.stateuploadedrequired

State of the release asset.

github.event.release.assets.updated_atstringrequired
github.event.release.assets.uploaderobject or nulloptional
github.event.release.assets.uploader.avatar_urlstringoptional
github.event.release.assets.uploader.deletedbooleanoptional
github.event.release.assets.uploader.emailstring or nulloptional
github.event.release.assets.uploader.events_urlstringoptional
github.event.release.assets.uploader.followers_urlstringoptional
github.event.release.assets.uploader.following_urlstringoptional
github.event.release.assets.uploader.gists_urlstringoptional
github.event.release.assets.uploader.gravatar_idstringoptional
github.event.release.assets.uploader.html_urlstringoptional
github.event.release.assets.uploader.idintegerrequired
github.event.release.assets.uploader.loginstringrequired
github.event.release.assets.uploader.namestringoptional
github.event.release.assets.uploader.node_idstringoptional
github.event.release.assets.uploader.organizations_urlstringoptional
github.event.release.assets.uploader.received_events_urlstringoptional
github.event.release.assets.uploader.repos_urlstringoptional
github.event.release.assets.uploader.site_adminbooleanoptional
github.event.release.assets.uploader.starred_urlstringoptional
github.event.release.assets.uploader.subscriptions_urlstringoptional
github.event.release.assets.uploader.typeBot, User, Organizationoptional
github.event.release.assets.uploader.urlstringoptional
github.event.release.assets.urlstringrequired
github.event.release.assets_urlstringrequired
github.event.release.authorobject or nullrequired
github.event.release.author.avatar_urlstringoptional
github.event.release.author.deletedbooleanoptional
github.event.release.author.emailstring or nulloptional
github.event.release.author.events_urlstringoptional
github.event.release.author.followers_urlstringoptional
github.event.release.author.following_urlstringoptional
github.event.release.author.gists_urlstringoptional
github.event.release.author.gravatar_idstringoptional
github.event.release.author.html_urlstringoptional
github.event.release.author.idintegerrequired
github.event.release.author.loginstringrequired
github.event.release.author.namestringoptional
github.event.release.author.node_idstringoptional
github.event.release.author.organizations_urlstringoptional
github.event.release.author.received_events_urlstringoptional
github.event.release.author.repos_urlstringoptional
github.event.release.author.site_adminbooleanoptional
github.event.release.author.starred_urlstringoptional
github.event.release.author.subscriptions_urlstringoptional
github.event.release.author.typeBot, User, Organizationoptional
github.event.release.author.urlstringoptional
github.event.release.bodystring or nullrequired
github.event.release.created_atstring or nullrequired
github.event.release.discussion_urlstringoptional
github.event.release.draftbooleanrequired

Whether the release is a draft or published

github.event.release.html_urlstringrequired
github.event.release.idintegerrequired
github.event.release.namestring or nullrequired
github.event.release.node_idstringrequired
github.event.release.prereleasebooleanrequired

Whether the release is identified as a prerelease or a full release.

github.event.release.published_atstring or nullrequired
github.event.release.reactionsobjectoptional
github.event.release.reactions.+1integerrequired
github.event.release.reactions.-1integerrequired
github.event.release.reactions.confusedintegerrequired
github.event.release.reactions.eyesintegerrequired
github.event.release.reactions.heartintegerrequired
github.event.release.reactions.hoorayintegerrequired
github.event.release.reactions.laughintegerrequired
github.event.release.reactions.rocketintegerrequired
github.event.release.reactions.total_countintegerrequired
github.event.release.reactions.urlstringrequired
github.event.release.tag_namestringrequired

The name of the tag.

github.event.release.tarball_urlstring or nullrequired
github.event.release.target_commitishstringrequired

Specifies the commitish value that determines where the Git tag is created from.

github.event.release.upload_urlstringrequired
github.event.release.urlstringrequired
github.event.release.zipball_urlstring or nullrequired
github.event.repositoryobjectrequired

The repository on GitHub where the event occurred. Webhook payloads contain the repository property when the event occurs from activity in a repository.

created #

This event occurs when there is activity relating to releases. For more information, see "About releases." For information about the APIs to manage releases, see the GraphQL API documentation or "Releases" in the REST API documentation.

To subscribe to this event, a GitHub App must have at least read-level access for the "Contents" repository permission.

fieldtyperequireddescription
github.event.actioncreatedrequired
github.event.senderobjectrequired

The GitHub user that triggered the event. This property is included in every webhook payload.

deleted #

This event occurs when there is activity relating to releases. For more information, see "About releases." For information about the APIs to manage releases, see the GraphQL API documentation or "Releases" in the REST API documentation.

To subscribe to this event, a GitHub App must have at least read-level access for the "Contents" repository permission.

fieldtyperequireddescription
github.event.actiondeletedrequired
github.event.senderobjectrequired

The GitHub user that triggered the event. This property is included in every webhook payload.

edited #

This event occurs when there is activity relating to releases. For more information, see "About releases." For information about the APIs to manage releases, see the GraphQL API documentation or "Releases" in the REST API documentation.

To subscribe to this event, a GitHub App must have at least read-level access for the "Contents" repository permission.

fieldtyperequireddescription
github.event.actioneditedrequired
github.event.changesobjectrequired
github.event.changes.bodyobjectoptional
github.event.changes.body.fromstringrequired

The previous version of the body if the action was edited.

github.event.changes.nameobjectoptional
github.event.changes.name.fromstringrequired

The previous version of the name if the action was edited.

github.event.changes.make_latestobjectoptional
github.event.changes.make_latest.tobooleanrequired

Whether this release was explicitly edited to be the latest.

github.event.senderobjectoptional

The GitHub user that triggered the event. This property is included in every webhook payload.

prereleased #

This event occurs when there is activity relating to releases. For more information, see "About releases." For information about the APIs to manage releases, see the GraphQL API documentation or "Releases" in the REST API documentation.

To subscribe to this event, a GitHub App must have at least read-level access for the "Contents" repository permission.

fieldtyperequireddescription
github.event.actionprereleasedrequired
github.event.senderobjectoptional

The GitHub user that triggered the event. This property is included in every webhook payload.

published #

This event occurs when there is activity relating to releases. For more information, see "About releases." For information about the APIs to manage releases, see the GraphQL API documentation or "Releases" in the REST API documentation.

To subscribe to this event, a GitHub App must have at least read-level access for the "Contents" repository permission.

fieldtyperequireddescription
github.event.actionpublishedrequired
github.event.senderobjectoptional

The GitHub user that triggered the event. This property is included in every webhook payload.

released #

This event occurs when there is activity relating to releases. For more information, see "About releases." For information about the APIs to manage releases, see the GraphQL API documentation or "Releases" in the REST API documentation.

To subscribe to this event, a GitHub App must have at least read-level access for the "Contents" repository permission.

fieldtyperequireddescription
github.event.actionreleasedrequired
github.event.senderobjectoptional

The GitHub user that triggered the event. This property is included in every webhook payload.

unpublished #

This event occurs when there is activity relating to releases. For more information, see "About releases." For information about the APIs to manage releases, see the GraphQL API documentation or "Releases" in the REST API documentation.

To subscribe to this event, a GitHub App must have at least read-level access for the "Contents" repository permission.

fieldtyperequireddescription
github.event.actionunpublishedrequired
github.event.senderobjectoptional

The GitHub user that triggered the event. This property is included in every webhook payload.