From c13bdb3f86d6cade0111fce6185e611d49408ff8 Mon Sep 17 00:00:00 2001 From: Colin Casey Date: Tue, 8 Aug 2023 11:18:21 -0300 Subject: [PATCH] Use stable workflow release The previous workflow reference of `@main` was the unstable development version of our release automation. The `@latest` ref points to the most recent stable version of the workflows. --- .github/workflows/prepare-release.yml | 4 ++-- .github/workflows/release.yml | 8 +++++++- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/prepare-release.yml b/.github/workflows/prepare-release.yml index da862ff..967d536 100644 --- a/.github/workflows/prepare-release.yml +++ b/.github/workflows/prepare-release.yml @@ -15,9 +15,9 @@ on: jobs: prepare-release: - uses: heroku/languages-github-actions/.github/workflows/_buildpacks-prepare-release.yml@main + uses: heroku/languages-github-actions/.github/workflows/_buildpacks-prepare-release.yml@latest with: - bump: ${{ inputs.bump }} app_id: ${{ vars.LINGUIST_GH_APP_ID }} + bump: ${{ inputs.bump }} secrets: app_private_key: ${{ secrets.LINGUIST_GH_PRIVATE_KEY }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9ec1d34..42b2d92 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -2,13 +2,19 @@ name: Release Buildpack on: workflow_dispatch: + inputs: + dry_run: + description: Execute the release workflow but skip any steps that publish (for testing purposes) + type: boolean + default: false jobs: release: name: Release - uses: heroku/languages-github-actions/.github/workflows/_buildpacks-release.yml@main + uses: heroku/languages-github-actions/.github/workflows/_buildpacks-release.yml@latest with: app_id: ${{ vars.LINGUIST_GH_APP_ID }} + dry_run: ${{ inputs.dry_run }} secrets: app_private_key: ${{ secrets.LINGUIST_GH_PRIVATE_KEY }} cnb_registry_token: ${{ secrets.CNB_REGISTRY_RELEASE_BOT_GITHUB_TOKEN }}