Skip to content

Commit

Permalink
Prefer node16 action to support macOS and Windows runners
Browse files Browse the repository at this point in the history
Implemented the same functionality as fetch_github_asset.sh in index.ts and made this action node16 action.
By this change, macOS and Windows runners on GitHub Actions will be supported.
  • Loading branch information
umireon committed Mar 24, 2022
1 parent f471e12 commit 66a4d09
Show file tree
Hide file tree
Showing 10 changed files with 18,005 additions and 119 deletions.
21 changes: 21 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"env": {
"es2021": true,
"node": true
},
"extends": [
"standard"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": [
"@typescript-eslint"
],
"rules": {
"sort-keys": "error",
"sort-imports": "error"
}
}
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
node_modules/
*.js
!dist/index.js
12 changes: 0 additions & 12 deletions Dockerfile

This file was deleted.

12 changes: 3 additions & 9 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,10 @@ inputs:
description: 'Use regex for file input'
type: boolean
required: false
default: false
runs:
using: 'docker'
image: 'Dockerfile'
args:
- ${{ inputs.repo }}
- ${{ inputs.version }}
- ${{ inputs.file }}
- ${{ inputs.target }}
- ${{ inputs.token }}
- ${{ inputs.regex }}
using: 'node16'
main: 'dist/index.js'

outputs:
version:
Expand Down
Loading

0 comments on commit 66a4d09

Please sign in to comment.