forked from tzvc/dart-auto-tag
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathaction.yml
51 lines (47 loc) · 1.74 KB
/
action.yml
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
46
47
48
49
50
51
name: 'Auto Tag Dart Versions'
description: 'Automatically create tags when you update your pubspec.yaml version'
author: 'jpeiffer'
inputs:
branch:
description: 'The target branch from which the tag will be created.'
required: false
changelog:
description: 'Set to false to skip scanning the changelog to apply the message.'
required: false
default: 'true'
major:
description: 'Set to false to skip creating the tag for the major version.'
required: false
default: 'true'
minor:
description: 'Set to false to skip creating the tag for the minor version.'
required: false
default: 'true'
overwrite:
description: 'Set to false to abort if the existing semver tag exists.'
required: false
default: 'true'
path:
description: 'Path to the directory containing the pubspec.yaml file to monitor.'
required: false
default: .
prefix:
description: 'Prefix to apply to the version number'
required: false
default: 'v'
token:
description: 'The GitHub access token to allow file reading and tag creation.'
required: true
runs:
using: 'composite'
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Dart
uses: dart-lang/setup-dart@v1
- name: Update dependencies
shell: bash
run: |
set -e
dart pub global activate -sgit https://github.com/peiffer-innovations/actions-dart-version-autotag
dart pub global run dart_version_autotag:tag --token ${{ inputs.token }} --path ${{ inputs.path }} --prefix "${{ inputs.prefix }}" --repository ${{ github.repository }} --changelog ${{inputs.changelog}} --branch "${{inputs.branch}}" --major ${{inputs.major}} --minor ${{inputs.minor}} --overwrite ${{inputs.overwrite}}