Skip to content

Commit

Permalink
Prepare release automation (#1200)
Browse files Browse the repository at this point in the history
* Prepare release automation

Adds automation to prepare a classic buildpack release. See heroku/languages-github-actions#183

* Remove "Buildpack" from workflow name
* Always use Title Case for workflow display names

---------

Co-authored-by: Ed Morley <501702+edmorley@users.noreply.github.com>
  • Loading branch information
2 people authored and simar0at committed Feb 14, 2024
1 parent d7a9039 commit 859be72
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/hatchet_app_cleaner.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Hatchet app cleaner
name: Hatchet App Cleaner

on:
#schedule:
Expand Down
31 changes: 31 additions & 0 deletions .github/workflows/hatchet_app_cleaner.yml.orig
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Hatchet app cleaner

on:
#schedule:
# Daily at 6am UTC.
# - cron: "0 6 * * *"
# Allow the workflow to be manually triggered too.
workflow_dispatch:

permissions:
contents: read

jobs:
hatchet-app-cleaner:
runs-on: ubuntu-latest
env:
HEROKU_API_KEY: ${{ secrets.HEROKU_API_KEY }}
HEROKU_API_USER: ${{ secrets.HEROKU_API_USER }}
HEROKU_DISABLE_AUTOUPDATE: 1
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Ruby and dependencies
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
ruby-version: "2.7"
- name: Run Hatchet destroy
# Only apps older than 10 minutes are destroyed, to ensure that any
# in progress CI runs are not interrupted.
run: bundle exec hatchet destroy --older-than 10
9 changes: 9 additions & 0 deletions .github/workflows/prepare_release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
name: Prepare Release

on:
workflow_dispatch:

jobs:
prepare-release:
uses: heroku/languages-github-actions/.github/workflows/_classic-buildpack-prepare-release.yml@latest
secrets: inherit

0 comments on commit 859be72

Please sign in to comment.