Skip to content

Commit bbccf9a

Browse files
committed
Fix bug where stackaid.json file was not added to list of files to commit
- Bump version for fix
1 parent 889005f commit bbccf9a

File tree

5 files changed

+7
-5
lines changed

5 files changed

+7
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
steps:
2323
- uses: actions/checkout@v2
2424
- uses: actions/setup-go@v3 # Only required for Go based repos
25-
- uses: stackaid/generate-stackaid-json@v1.8
25+
- uses: stackaid/generate-stackaid-json@v1.9
2626
```
2727
2828
This will commit a `stackaid.json` file in your repository which will then automatically show up for funding in the StackAid dashboard.

dist/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ const run = () => __awaiter(void 0, void 0, void 0, function* () {
297297
// Create list of files for commit
298298
const files = [];
299299
if (stackAidJson.dependencies.length > 0) {
300-
(0, github_1.addFileChange)('stackaid.json', JSON.stringify(stackAidJson, null, 2));
300+
files.push((0, github_1.addFileChange)('stackaid.json', JSON.stringify(stackAidJson, null, 2)));
301301
}
302302
const includePackageJson = core.getBooleanInput('include_package_json');
303303
if (includePackageJson && !github_1.isSamePublishRepo) {

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "stackaid-json-generator",
3-
"version": "1.8.0",
3+
"version": "1.9.0",
44
"private": false,
55
"description": "A GitHub action to generate a stackaid.json file based on your repository's dependency graph",
66
"main": "lib/src/main.js",

src/main.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,9 @@ const run = async () => {
7777
// Create list of files for commit
7878
const files: FileAddition[] = []
7979
if (stackAidJson.dependencies.length > 0) {
80-
addFileChange('stackaid.json', JSON.stringify(stackAidJson, null, 2))
80+
files.push(
81+
addFileChange('stackaid.json', JSON.stringify(stackAidJson, null, 2))
82+
)
8183
}
8284

8385
const includePackageJson = core.getBooleanInput('include_package_json')

0 commit comments

Comments
 (0)