Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 17 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
name: Release Buildpack

on:
# Auto-trigger when the "Prepare release" PR (created by the
# _buildpacks-prepare-release.yml workflow) is merged.
pull_request:
branches:
- main
types:
- closed
workflow_dispatch:
inputs:
dry_run:
Expand All @@ -14,10 +21,19 @@ permissions: {}
jobs:
release:
name: Release
# On `pull_request`, only run for the merged auto-generated
# "Prepare release" PR (branch name set by
# _buildpacks-prepare-release.yml). Manual dispatches always run.
if: >-
github.event_name == 'workflow_dispatch' ||
(github.event.pull_request.merged == true &&
github.event.pull_request.head.repo.full_name == github.repository &&
github.event.pull_request.head.ref == 'prepare-release' &&
github.event.pull_request.user.login == 'heroku-linguist[bot]')
uses: heroku/languages-github-actions/.github/workflows/_buildpacks-release.yml@latest
with:
app_id: ${{ vars.LINGUIST_GH_APP_ID }}
dry_run: ${{ inputs.dry_run }}
dry_run: ${{ inputs.dry_run || false }}
reviewers: 'edmorley'
secrets:
app_private_key: ${{ secrets.LINGUIST_GH_PRIVATE_KEY }}
Expand Down
Loading