Skip to content

Commit d6d2f6f

Browse files
committed
Improves action speed
1 parent 93572f7 commit d6d2f6f

13 files changed

+12091
-11
lines changed

.eslintignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
dist/

.eslintrc.json

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"env": {
3+
"commonjs": true,
4+
"es6": true,
5+
"node": true
6+
},
7+
"extends": "eslint:recommended",
8+
"globals": {
9+
"Atomics": "readonly",
10+
"SharedArrayBuffer": "readonly"
11+
},
12+
"parserOptions": {
13+
"ecmaVersion": 2018
14+
},
15+
"rules": {
16+
}
17+
}

.gitattributes

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
dist/** -diff linguist-generated=true

.gitignore

+67
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
node_modules/
2+
3+
# Editors
4+
.vscode/
5+
.idea/
6+
*.iml
7+
8+
# Logs
9+
logs
10+
*.log
11+
npm-debug.log*
12+
yarn-debug.log*
13+
yarn-error.log*
14+
15+
# Runtime data
16+
pids
17+
*.pid
18+
*.seed
19+
*.pid.lock
20+
21+
# Directory for instrumented libs generated by jscoverage/JSCover
22+
lib-cov
23+
24+
# Coverage directory used by tools like istanbul
25+
coverage
26+
27+
# nyc test coverage
28+
.nyc_output
29+
30+
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
31+
.grunt
32+
33+
# Bower dependency directory (https://bower.io/)
34+
bower_components
35+
36+
# node-waf configuration
37+
.lock-wscript
38+
39+
# Compiled binary addons (https://nodejs.org/api/addons.html)
40+
build/Release
41+
42+
# Other Dependency directories
43+
jspm_packages/
44+
45+
# TypeScript v1 declaration files
46+
typings/
47+
48+
# Optional npm cache directory
49+
.npm
50+
51+
# Optional eslint cache
52+
.eslintcache
53+
54+
# Optional REPL history
55+
.node_repl_history
56+
57+
# Output of 'npm pack'
58+
*.tgz
59+
60+
# Yarn Integrity file
61+
.yarn-integrity
62+
63+
# dotenv environment variables file
64+
.env
65+
66+
# next.js build output
67+
.next

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ This GitHub Action (written in composite run steps) allows you to leverage GitHu
77
Create a workflow `.yml` file in your `.github/workflows` directory. An [example workflow](#example-workflow---create-a-release) is available below. For more information, reference the GitHub Help Documentation for [Creating a workflow file](https://help.github.com/en/articles/configuring-a-workflow#creating-a-workflow-file).
88

99
### Inputs
10-
None.
10+
* `pubspec-file-path`: The pubspec.yaml file path. Optional. Default: `pubspec.yaml`
1111

1212
### Outputs
1313
* `version`: The Flutter version

action.yml

+6-10
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,16 @@
11
name: 'Get the Flutter Version Environment'
22
description: 'Get the Flutter environment version from the pubspec file'
33
author: 'Zennon Gosalvez'
4+
inputs:
5+
pubspec-file-path:
6+
description: 'The pubspec.yaml file path. Optional. Default: `pubspec.yaml`'
7+
default: 'pubspec.yaml'
48
outputs:
59
version:
610
description: "The Flutter version"
7-
value: ${{ steps.get-flutter-version.outputs.version }}
811
runs:
9-
using: "composite"
10-
steps:
11-
- id: get-flutter-version
12-
run: | # https://github.com/subosito/flutter-action/issues/47#issuecomment-675821988
13-
set -e
14-
15-
brew install yq
16-
echo "::set-output name=version::$( yq read pubspec.yaml environment.flutter )"
17-
shell: bash
12+
using: 'node12'
13+
main: 'dist/index.js'
1814
branding:
1915
icon: 'minimize'
2016
color: 'blue'

0 commit comments

Comments
 (0)