forked from blendthink/elixir
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yaml
41 lines (37 loc) · 1.12 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
name: 'Elixir for Flutter Analyzer'
author: 'GarageTeam'
description: 'Tool for commenting `Flutter analyze` results to GitHub PullRequest.'
branding:
icon: alert-circle
color: blue
inputs:
token:
description: 'GITHUB_TOKEN or a `repo` scoped Personal Access Token (PAT). defaults to `github.token`.'
required: false
default: ${{ github.token }}
dir:
description: 'Directory to run the `dart analyze`. defaults to `./`.'
required: false
default: ./
runs:
using: composite
steps:
- name: Fetch branches
shell: bash
run: |
git fetch origin ${{ github.base_ref }}
git fetch origin ${{ github.head_ref }}
- name: Active elixir
shell: bash
run: dart pub global activate --source path packages/elixir
- name: Run elixir
shell: bash
run: |
elixir run \
--repo=${{ github.repository }} \
--num=${{ github.event.pull_request.number }} \
--base=origin/${{ github.base_ref }} \
--head=origin/${{ github.head_ref }} \
--dir=${{ inputs.dir }}
env:
GITHUB_TOKEN: ${{ inputs.token }}