Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
ece7658
Better support for go projects. Fix file matching in action repo
wescarr Aug 31, 2022
615c394
Merge branch 'main' into feat-go-deps
wescarr Aug 31, 2022
03f8b87
We can make token optional
wescarr Aug 31, 2022
d5f1c95
Merge branch 'main' into feat-go-deps
wescarr Aug 31, 2022
35b5343
Merge branch 'main' into feat-go-deps
wescarr Aug 31, 2022
90fe731
Debug listModules command
wescarr Aug 31, 2022
fbb076a
Update dist files
wescarr Aug 31, 2022
4579fd3
Log generated file in test
wescarr Aug 31, 2022
75d4126
Fix indentation
wescarr Aug 31, 2022
31abd7b
Download missing modules when getting Go dependencies
wescarr Aug 31, 2022
1a211de
Download latest version of missing modules
wescarr Aug 31, 2022
4c3a009
Rebuild dist files
wescarr Aug 31, 2022
e2ca080
Need to use ids for referencing steps
wescarr Aug 31, 2022
f1a94bb
Update doc on token, increment version
wescarr Aug 31, 2022
5e74ba1
Use version defined in mode file instead of latest
wescarr Aug 31, 2022
ddc646e
Specify working dir for go mod download command
wescarr Aug 31, 2022
a4f6076
Checked out repo dir may not always be current working dir
wescarr Sep 1, 2022
df3ed35
List cwd contents when looking for go deps
wescarr Sep 1, 2022
8e9465a
Debug each instance of listModules
wescarr Sep 2, 2022
8c69ebb
Merge branch 'main' into feat-go-deps
wescarr Sep 2, 2022
2753828
Use new approach listing .Deps
wescarr Sep 2, 2022
30ddad8
Produce correct paths for stackaid.json file
wescarr Sep 2, 2022
413ddc6
Fix fetching and mapping
wescarr Sep 2, 2022
553765a
Unique dependencies and do not list self as a dep
wescarr Sep 3, 2022
a6c9978
Fix uniquing direct and indirect dependencies
wescarr Sep 3, 2022
96370e3
Fix filter of self dependency
wescarr Sep 3, 2022
c128403
Remove current repository as a dependency
wescarr Sep 3, 2022
09b5534
Bump version
wescarr Sep 3, 2022
a6711fd
Update version in README
wescarr Sep 3, 2022
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
8 changes: 6 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: ./
- uses: actions/setup-go@v3
- id: generate
uses: ./
with:
token: ${{ secrets.GITHUB_TOKEN }}
skip_publish: true
- run: echo $STACKAID_JSON
env:
STACKAID_JSON: ${{ steps.generate.outputs.stackaid_json}}
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ jobs:
stackaid-json:
runs-on: ubuntu-latest
steps:
- uses: stackaid/generate-stackaid-json@v1.1
with:
token: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/checkout@v2
- uses: actions/setup-go@v3
- uses: stackaid/generate-stackaid-json@v1.3
```

This will commit a `stackaid.json` file in your repository which will then automatically show up for funding in the StackAid dashboard.
Expand All @@ -31,7 +31,7 @@ The action also supports a few useful `inputs` and `outputs` so you can publish

### Inputs

- `token`: An access token which has repo permissions. You can use the `${{ secrets.GITHUB_TOKEN }}` automatically provided by the action runner if publishing to the same repository.
- `token`: An access token which has repo permissions. By default the action uses `${{ github.token }}` automatically provided by the action runner.
- `publish_repo`: The full name of the repository, (eg: `username/repo-name`) to publish the generated stackaid.json file. Defaults to the current repository.
- `publish_path`: The path to publish to. By default the stackaid.json file is published to the root of the repository.
- `skip_publish`: Set to `true` if you do not want to publish the generated file.
Expand Down
6 changes: 5 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ author: 'Wes Carr wescarr@gmail.com'
inputs:
token:
description: 'A GitHub access token. If publishing to a different repo you must provide a token with appropriate permissions'
required: true
default: ${{ github.token }}
publish_repo:
description: 'The repository to publish the stackaid.json file. Defaults to current repository'
default: ${{ github.repository }}
Expand All @@ -17,6 +17,10 @@ inputs:
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: false
outputs:
stackaid_json:
description: 'The generated stackaid.json file'
Expand Down
Loading