{"id":21847560,"url":"https://github.com/scribd/log-finder-action","last_synced_at":"2025-03-21T17:19:59.929Z","repository":{"id":56635618,"uuid":"282790867","full_name":"scribd/log-finder-action","owner":"scribd","description":"GitHub Action for searching a string to find all contained log files.","archived":false,"fork":false,"pushed_at":"2022-11-11T00:39:25.000Z","size":595,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-01-26T12:23:57.518Z","etag":null,"topics":["actions"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/scribd.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-07-27T04:07:17.000Z","updated_at":"2022-11-10T22:21:56.000Z","dependencies_parsed_at":"2022-08-15T22:20:30.855Z","dependency_job_id":null,"html_url":"https://github.com/scribd/log-finder-action","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scribd%2Flog-finder-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scribd%2Flog-finder-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scribd%2Flog-finder-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scribd%2Flog-finder-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/scribd","download_url":"https://codeload.github.com/scribd/log-finder-action/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244835574,"owners_count":20518263,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["actions"],"created_at":"2024-11-27T23:18:38.398Z","updated_at":"2025-03-21T17:19:59.907Z","avatar_url":"https://github.com/scribd.png","language":"JavaScript","readme":"# Log Finder\n\n![Log Finder](https://github.com/scribd/log-finder-action/workflows/Log%20Finder/badge.svg)\n\nGitHub Action for searching a string to find all contained log files.\n\n\nIf you have a build log file that looks something like this:\n\n```\nPlease update to the latest Carthage version: 0.35.0. You currently are on 0.34.0\n*** No Cartfile.resolved found, updating dependencies\n*** Fetching SomeProject\n*** Fetching OtherProject\n*** Checking out AnotherProject at \"v3.17.3\"\n*** Checking out FinalProject at \"1273cb428e0c9a43c1de964ef896c532ee67391e\"\n*** xcodebuild output can be found in /var/folders/wz/gfmnqb3x78sgz5vww3w2mrjh0000gn/T/carthage-xcodebuild.asdf.123.log\n*** Building scheme \"SomeProject-iOS\" in AnotherProject.xcworkspace\n*** Building scheme \"SomeProject-watchOS\" in AnotherProject.xcworkspace\n*** Building scheme \"OtherProject-watchOS\" in FinalProject.xcodeproj\\\n*** Error, failed to build scheme. See error file: ./build-output/error.log for more info.\n```\n\nThis action can parse the build log, and will return this:\n\n```\n/var/folders/wz/gfmnqb3x78sgz5vww3w2mrjh0000gn/T/carthage-xcodebuild.asdf.123.log\n./build-output/error.log\n```\n\nThis list can then easily be used with the [upload-artifact](https://github.com/actions/upload-artifact) action.\n\n\n## Inputs\n\n\n### `content`\n\nThe string to search for log files in.\n\n- require: false\n\n\n### `content-path`\n\nThe file(s) which contains the string to search for log files in.\n\n- require: false\n\n\n### `file-suffix`\n\nThe file type(s) to search for. Such as log, txt, etc.\n\n- require: true\n\n- default: log\n\n## Outputs\n\n### `log-files`\n\nThe found log file paths (separated by newlines).\n\n## Example Usage\n\n### Parsing a string to find all log and txt files\n\n```yaml\n- name: Find Log Files\n  uses: scribd/log-finder-action@v1\n  id: log-finder\n  with:\n    content: ${{ steps.some_build_step.outputs.build_output }}\n    file-suffix: |\n      log\n      txt\n\n- name: Upload Artifacts\n  if: ${{ always() }}\n  uses: actions/upload-artifact@v2\n  with:\n    name: build-logs\n    path: ${{ steps.log-finder.outputs.log-files }}\n```\n\n### Parsing mutliple files to find all log files\n\n```yaml\n- name: Find Log Files\n  uses: scribd/log-finder-action@v1\n  id: log-finder\n  with:\n    content-path: |\n      test/test.txt\n      test/failure.log\n```\n\nFor more example usage, see the [workflow](https://github.com/scribd/log-finder-action/blob/master/.github/workflows/main.yml) being used for tests.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscribd%2Flog-finder-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fscribd%2Flog-finder-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscribd%2Flog-finder-action/lists"}