Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
tkulpa committed Jan 6, 2021
0 parents commit cb9c0c5
Show file tree
Hide file tree
Showing 7 changed files with 738 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
27 changes: 27 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Next.js routes list action

This action gets all routes of next.js app

## Inputs
### `base-url`

Base URL you want to append routes to, usefull for passing already complete links. For more see `links` output

## Outputs

### `routes`

List of available routes

### `links`

List of all avaiable complete links, only when `base-url` was passed to inputs

## Example usage
```
- name: get next.js routes step
id: get-nextjs-routes
uses: aurity/nextjs-get-routes-action@v1
with:
base-url: https://markdown-website-git-test-get-pages-action3.aurity.vercel.app
```
13 changes: 13 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: 'Get next.js routes'
description: 'Get list of next.js routes from /pages directory'
inputs:
base-url:
description: 'Base URL you want to append routes to, usefull for passing already complete links'
outputs:
routes:
description: 'Array of next.js routes'
links:
description: 'String of next.js links, only when you passed base-url'
runs:
using: 'node12'
main: 'dist/index.js'
Loading

0 comments on commit cb9c0c5

Please # to comment.