Skip to content

Commit

Permalink
remove rename, capture file
Browse files Browse the repository at this point in the history
  • Loading branch information
e3b0c442 committed Nov 30, 2022
1 parent b659d37 commit ed69638
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 9 deletions.
45 changes: 45 additions & 0 deletions fossa.telemetry.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
"cliCommandArgs": [
"fossa",
"test",
"--debug"
],
"cliEnvironment": "prod",
"cliExitedFatally": false,
"cliResolvedConfig": {
"cmdConfig": {
"apiOpts": {
"apiKey": "<REDACTED>",
"uri": "Nothing"
},
"baseDir": {
"unBaseDir": "/Users/nickm/git/github.com/replicatedhq/action-fossa/"
},
"diffRevision": null,
"outputFormat": "TestOutputPretty",
"projectRevision": {
"projectBranch": "main",
"projectName": "github.com/replicatedhq/action-fossa",
"projectRevision": "b659d3727cb8a5e47e8128aedb59383824f5fd67"
},
"timeout": {
"contents": 60,
"tag": "Minutes"
}
},
"cmdName": "test"
},
"cliStartedAt": "2022-11-30T18:58:29.739612Z",
"cliSystemInfo": {
"systemCapabilities": 10,
"systemInfoArch": "x86_64",
"systemInfoOs": "darwin",
"systemProcessors": 10
},
"cliTelLogs": [],
"cliTelemetryId": "8dc66278-6f03-4cbe-90c4-efcda7f47774",
"cliTimedDurations": [],
"cliTotalDurationInSec": 8.121399,
"cliUsageCounter": {},
"cliVersion": "v3.4.1"
}
10 changes: 1 addition & 9 deletions scan/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,23 +28,15 @@ runs:
env:
FOSSA_API_KEY: ${{ inputs.api-key }}
run: fossa analyze ${{ inputs.debug == 'true' && '--debug ' || '' }}
- name: rename debug log
if: inputs.debug == 'true'
shell: bash
run: mv fossa.debug.json fossa.analyze.debug.json
- name: fossa test
if: inputs.run-tests == 'true'
shell: bash
env:
FOSSA_API_KEY: ${{ inputs.api-key }}
run: fossa test ${{ inputs.debug == 'true' && '--debug ' || '' }}${{ inputs.diff == 'true' && '--diff ' || '' }}${{ inputs.diff == 'true' && inputs.diff-ref || '' }}
- name: rename debug log
if: inputs.debug == 'true'
shell: bash
run: mv fossa.debug.json fossa.test.debug.json
- name: save debug log
if: inputs.debug == 'true'
uses: actions/upload-artifact@v3
with:
name: fossa-debug-log
path: "*.debug.json"
path: "*.debug.json.*"

0 comments on commit ed69638

Please sign in to comment.