Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Set default value for repository. #436

Merged
merged 1 commit into from
May 22, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ jobs:
- name: Setup node and cache dependencies
uses: actions/setup-node@v2
with:
node-version: '16'
node-version: 16
cache: 'npm'

- name: Build and test
run: |
npm install
npm ci
npm run all

- name: Run action
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ A Github Action to download assets from github release. It can download specifie
with:
# The source repository path.
# Expected format {owner}/{repo}
# Default: ${{ github.repository }}
repository: ""

# A flag to set the download target as latest release
Expand Down Expand Up @@ -52,7 +53,6 @@ A Github Action to download assets from github release. It can download specifie

- uses: robinraju/release-downloader@v1.3
with:
repository: ${{ github.reposiotry }}
latest: true
fileName: "foo.zip"
```
Expand Down
4 changes: 2 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ author: "Robin Raju"
inputs:
repository:
description: "The source repository path. Expected format {owner}/{repo}"
default: ""
required: true
default: ${{ github.repository }}
required: false
latest:
description: "A flag to choose between latest release and remaining releases"
default: "false"
Expand Down
6 changes: 2 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,12 @@
"description": "Github action to download release assets",
"main": "lib/main.js",
"scripts": {
"build": "tsc",
"build": "tsc && ncc build",
"format": "prettier --write **/*.ts",
"format-check": "prettier --check **/*.ts",
"lint": "eslint src/**/*.ts",
"pack": "ncc build",
"test": "jest",
"dev": "npm run build && npm run pack && node dist/index.js",
"all": "npm run format && npm run lint && npm run build && npm run pack && npm test"
"all": "npm run format && npm run lint && npm run build && npm test"
},
"repository": {
"type": "git",
Expand Down