-
Notifications
You must be signed in to change notification settings - Fork 1
58 lines (53 loc) · 1.94 KB
/
stackaid-dependency-generator.yml
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
- name: Stackaid dependency generator
uses: stackaid/[email protected]
name: 'fund-on-stackaid'
on:
push:
branches:
- main
jobs:
stackaid-json:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v4 # Only required for Go based repos
- uses: stackaid/[email protected]
token: ${{ secrets.STACKAID_ACCESS_TOKEN }}
publish_repo: 'owner/name' # of new repository
publish_path: ${{ github.repository }} # Publishes dependecy files under the current repo name. Avoids name conflicts when using this action on multiple repositories.
name: 'Stackaid dependency generator'
description: "Generate a stackaid.json file based on your repository's dependency graph"
author: 'Wes Carr [email protected]'
inputs:
token:
description: 'A GitHub access token. If publishing to a different repo you must provide a token with appropriate permissions'
default: ${{ github.token }}
publish_repo:
description: 'The repository to publish the stackaid.json file. Defaults to current repository'
default: ${{ github.repository }}
required: false
publish_path:
description: 'The path to publish the stackaid.json file'
default: ''
required: false
skip_publish:
description: 'If true, the stackaid.json file will not be published to the repository'
default: false
required: false
src_dir:
description: 'Source code root directory'
default: ${{ github.workspace }}
required: true
include_package_json:
description: "If true and publish_repo is different from the working repository, then package.json files will be copied to publish_repo. Use this option when you don't want StackAid to have access to your source."
default: true
required: true
outputs:
stackaid_json:
description: 'The generated stackaid.json file'
runs:
using: 'node16'
main: 'dist/index.js'
branding:
icon: 'layers'
color: 'orange'