|
| 1 | +<!-- header:start --> |
| 2 | + |
| 3 | +# GitHub Reusable Workflow: Release - Finish |
| 4 | + |
| 5 | +<div align="center"> |
| 6 | + <img src="../logo.svg" width="60px" align="center" alt="Release - Finish" /> |
| 7 | +</div> |
| 8 | + |
| 9 | +--- |
| 10 | + |
| 11 | +<!-- header:end --> |
| 12 | +<!-- badges:start --> |
| 13 | + |
| 14 | +[](https://github.com/hoverkraft-tech/ci-github-publish/releases) |
| 15 | +[](http://choosealicense.com/licenses/mit/) |
| 16 | +[](https://img.shields.io/github/stars/hoverkraft-tech/ci-github-publish?style=social) |
| 17 | +[](https://github.com/hoverkraft-tech/ci-github-publish/blob/main/CONTRIBUTING.md) |
| 18 | + |
| 19 | +<!-- badges:end --> |
| 20 | +<!-- overview:start --> |
| 21 | + |
| 22 | +## Overview |
| 23 | + |
| 24 | +Reusable workflow — publishes a draft release or deletes it on failure. |
| 25 | +Pair with release-start.yml: call this after your gate jobs succeed or fail. |
| 26 | + |
| 27 | +### Permissions |
| 28 | + |
| 29 | +- **`contents`**: `write` |
| 30 | + |
| 31 | +<!-- overview:end --> |
| 32 | +<!-- usage:start --> |
| 33 | + |
| 34 | +## Usage |
| 35 | + |
| 36 | +```yaml |
| 37 | +name: Release - Finish |
| 38 | +on: |
| 39 | + push: |
| 40 | + branches: |
| 41 | + - main |
| 42 | +permissions: {} |
| 43 | +jobs: |
| 44 | + release-finish: |
| 45 | + uses: hoverkraft-tech/ci-github-publish/.github/workflows/release-finish.yml@2589abb2627bde4038ac543546a539a827ea2be8 # feat/release-workflows |
| 46 | + permissions: {} |
| 47 | + with: |
| 48 | + # JSON array of runner(s) to use. |
| 49 | + # See https://docs.github.com/en/actions/using-jobs/choosing-the-runner-for-a-job. |
| 50 | + # |
| 51 | + # Default: `["ubuntu-latest"]` |
| 52 | + runs-on: '["ubuntu-latest"]' |
| 53 | + |
| 54 | + # The tag of the draft release to publish or delete (output of the release-start.yml workflow). |
| 55 | + # This input is required. |
| 56 | + tag: "" |
| 57 | + |
| 58 | + # Set to true to publish the draft, false to delete it. |
| 59 | + # Default: `true` |
| 60 | + publish: true |
| 61 | +``` |
| 62 | +
|
| 63 | +<!-- usage:end --> |
| 64 | +<!-- inputs:start --> |
| 65 | +
|
| 66 | +## Inputs |
| 67 | +
|
| 68 | +### Workflow Call Inputs |
| 69 | +
|
| 70 | +| **Input** | **Description** | **Required** | **Type** | **Default** | |
| 71 | +| ------------- | --------------------------------------------------------------------------------------------- | ------------ | ----------- | ------------------- | |
| 72 | +| **`runs-on`** | JSON array of runner(s) to use. | **false** | **string** | `["ubuntu-latest"]` | |
| 73 | +| | See <https://docs.github.com/en/actions/using-jobs/choosing-the-runner-for-a-job>. | | | | |
| 74 | +| **`tag`** | The tag of the draft release to publish or delete (output of the release-start.yml workflow). | **true** | **string** | - | |
| 75 | +| **`publish`** | Set to true to publish the draft, false to delete it. | **false** | **boolean** | `true` | |
| 76 | + |
| 77 | +<!-- inputs:end --> |
| 78 | +<!-- secrets:start --> |
| 79 | +<!-- secrets:end --> |
| 80 | +<!-- outputs:start --> |
| 81 | +<!-- outputs:end --> |
| 82 | +<!-- examples:start --> |
| 83 | +<!-- examples:end --> |
| 84 | +<!-- contributing:start --> |
| 85 | + |
| 86 | +## Contributing |
| 87 | + |
| 88 | +Contributions are welcome! Please see the [contributing guidelines](https://github.com/hoverkraft-tech/ci-github-publish/blob/main/CONTRIBUTING.md) for more details. |
| 89 | + |
| 90 | +<!-- contributing:end --> |
| 91 | +<!-- security:start --> |
| 92 | +<!-- security:end --> |
| 93 | +<!-- license:start --> |
| 94 | + |
| 95 | +## License |
| 96 | + |
| 97 | +This project is licensed under the MIT License. |
| 98 | + |
| 99 | +SPDX-License-Identifier: MIT |
| 100 | + |
| 101 | +Copyright © 2026 hoverkraft-tech |
| 102 | + |
| 103 | +For more details, see the [license](http://choosealicense.com/licenses/mit/). |
| 104 | + |
| 105 | +<!-- license:end --> |
| 106 | +<!-- generated:start --> |
| 107 | + |
| 108 | +--- |
| 109 | + |
| 110 | +This documentation was automatically generated by [CI Dokumentor](https://github.com/hoverkraft-tech/ci-dokumentor). |
| 111 | + |
| 112 | +<!-- generated:end --> |
0 commit comments