You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: prepare-release/README.md
+15-9Lines changed: 15 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,20 @@
3
3
This action prepares a release on GitHub:
4
4
1. Running `towncrier` to update the changelog.
5
5
6
-
## GitHub Action Usage
6
+
## Action Inputs
7
+
8
+
| Name | Description | Default |
9
+
| ---- | ----------- | ------- |
10
+
|`version`| Version to release. |**Required**|
11
+
|`branch`| Target branch to use for the release. |`main`|
12
+
|`changelog-author`| Git-format author to use for the changelog commits. |@conda-bot|
13
+
|`fork-token`| GitHub token to create and push to the fork. If not provided, no fork will be used.<br>Fine-grained PAT: `administration: write`|`${{ github.token }}`|
14
+
|`branch-token`| GitHub token to create and push to the branch.<br>Fine-grained PAT: `contents: write`|`${{ github.token }}`|
15
+
|`pr-token`| GitHub token to create the pull request.<br>Fine-grained PAT: `pull-request: write`|`${{ github.token }}`|
16
+
17
+
## Sample Workflows
18
+
19
+
### Basic Workflow
7
20
8
21
```yaml
9
22
name: Prepare Release
@@ -26,17 +39,10 @@ jobs:
26
39
- name: Prepare Release
27
40
uses: conda/actions/prepare-release
28
41
with:
29
-
# [required]
30
-
# the version to be released
31
42
version: ${{ inputs.version }}
32
-
33
-
# [optional]
34
-
# GitHub token to fork repository and create changelog PR
35
-
# (`contents: write` & `pull-request: write` for fine-grained PAT; `repo` for classic PAT)
36
-
# token: ${{ github.token }}
37
43
```
38
44
39
-
### Sample Workflow Preparing Release using Dynamic Branch
0 commit comments