{"id":16822427,"url":"https://github.com/dentarg/heroku","last_synced_at":"2025-03-17T16:49:23.913Z","repository":{"id":65159505,"uuid":"484197895","full_name":"dentarg/heroku","owner":"dentarg","description":"GitHub Action to deploy your app to Heroku","archived":false,"fork":false,"pushed_at":"2024-02-17T16:14:08.000Z","size":13,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-10-14T11:04:04.673Z","etag":null,"topics":["deployment","github-actions","heroku"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dentarg.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-04-21T20:38:16.000Z","updated_at":"2023-07-25T14:56:36.000Z","dependencies_parsed_at":"2024-02-17T16:48:02.601Z","dependency_job_id":null,"html_url":"https://github.com/dentarg/heroku","commit_stats":{"total_commits":17,"total_committers":2,"mean_commits":8.5,"dds":0.05882352941176472,"last_synced_commit":"1fe58a67d6d67865199069dd98a7675990233a23"},"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dentarg%2Fheroku","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dentarg%2Fheroku/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dentarg%2Fheroku/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dentarg%2Fheroku/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dentarg","download_url":"https://codeload.github.com/dentarg/heroku/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244074418,"owners_count":20393965,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["deployment","github-actions","heroku"],"created_at":"2024-10-13T11:04:07.387Z","updated_at":"2025-03-17T16:49:23.887Z","avatar_url":"https://github.com/dentarg.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# heroku\n\n`dentarg/heroku` is an [composite run steps action] that deploys your app to Heroku, by `git push`.\n\nThe Heroku API key (`HEROKU_API_KEY`) needs to be saved as a [secret in GitHub Actions]. Use [`heroku authorizations`] to generate the API key, see this [Heroku help article] for more information.\n\nIf you pass `github-token`, the action will create [deployments] in your repository. When you use this, the workflow needs not to be triggered by the [`push` event] to work. See the example below.\n\nThe example workflow below deploys the app when the `CI` workflow ran succesfully against the default branch.\n\n```yaml\nname: Deploy to Heroku\n\non:\n  workflow_run:\n    workflows: [CI]\n    types: [completed]\n\npermissions:\n  contents: read\n  deployments: write\n\njobs:\n  deploy:\n    if: |\n      github.event.workflow_run.conclusion == 'success' \u0026\u0026\n      github.event.workflow_run.head_branch == github.event.repository.default_branch\n    concurrency: myapp\n    runs-on: ubuntu-latest\n    steps:\n      - uses: dentarg/heroku@v1\n        with:\n          app: myapp\n          key: ${{ secrets.HEROKU_API_KEY }}\n          sha: ${{ github.event.workflow_run.head_commit.id }}\n          github-token: ${{ secrets.GITHUB_TOKEN }}\n```\n\n[composite run steps action]: https://docs.github.com/en/free-pro-team@latest/actions/creating-actions/creating-a-composite-run-steps-action\n[secret in GitHub Actions]: https://docs.github.com/en/actions/security-guides/encrypted-secrets\n[`heroku authorizations`]: https://github.com/heroku/cli/blob/master/docs/authorizations.md\n[Heroku help article]: https://help.heroku.com/PBGP6IDE/how-should-i-generate-an-api-key-that-allows-me-to-use-the-heroku-platform-api\n[deployments]: https://docs.github.com/en/rest/deployments/deployments\n[`push` event]: https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#push\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdentarg%2Fheroku","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdentarg%2Fheroku","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdentarg%2Fheroku/lists"}