generated from dart-action/dart_action_template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
35 lines (33 loc) · 877 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
name: "dart-action"
description: "Use dart write action"
author: "CaiJingLong"
inputs:
github-token:
description: "The GitHub token to use for the action"
required: true
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 }}/bin/main.dart"
shell: bash
env:
WORKFLOW_TOKEN: ${{ inputs.github-token }}