-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
37 lines (35 loc) · 933 Bytes
/
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
name: 'dart-action'
description: 'Use dart write action'
author: 'CaiJingLong'
inputs:
github-token:
description: 'The GitHub token to use for the action'
required: true
bin-name:
description: 'The dart file path of the action'
required: true
default: bin/main.dart
runs:
using: composite
steps:
- uses: subosito/flutter-action@v2
name: Install Flutter
with:
channel: 'stable'
cache: true
- name: Show Flutter and dart version
run: |
dart --version
flutter --version
shell: bash
- name: show the action path
shell: bash
run: |
echo "github.action_path: ${{ github.action_path }}"
- name: Install dependencies
run: dart pub get
working-directory: ${{ github.action_path }}
shell: bash
- name: Run dart
run: dart run "${{ github.action_path }}/${{ inputs.bin-name }}"
shell: bash