-
Notifications
You must be signed in to change notification settings - Fork 3
/
action.yaml
45 lines (45 loc) · 1.74 KB
/
action.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: Python Release & Publish
description: Python that publishes a new release.
inputs:
checkout-repo:
required: false
description: Perform checkout as first step of action
default: "true"
github-token:
required: true
description: GitHub token that can checkout the repository as well as create tags/releases against it. e.g. 'secrets.GITHUB_TOKEN'
default: ${{ github.token }}
dry-run:
required: false
description: Whether to run semantic release in `dry-run` mode. It will override the `dryRun` attribute in your configuration file
default: "false"
extra-plugins:
required: false
description: Extra plugins for pre-install. You can also specify specifying version range for the extra plugins if you prefer. Defaults to install @open-turo/semantic-release-config.
default: |
@open-turo/semantic-release-config@^1.4.0
outputs:
new-release-published:
description: Whether a new release was published
value: ${{ steps.release.outputs.new-release-published }}
new-release-version:
description: Version of the new release
value: ${{ steps.release.outputs.new-release-version || steps.version.outputs.new-release-version }}
new-release-major-version:
description: Major version of the new release
value: ${{ steps.release.outputs.new-release-major-version }}
runs:
using: composite
steps:
- name: Checkout
uses: actions/checkout@v4
if: inputs.checkout-repo == 'true'
with:
fetch-depth: 0
token: ${{ inputs.github-token }}
- uses: open-turo/actions-release/semantic-release@v5
id: release
with:
github-token: ${{ inputs.github-token }}
dry-run: ${{ inputs.dry-run }}
extra-plugins: ${{ inputs.extra-plugins }}