{"id":16497186,"url":"https://github.com/guillaumefalourd/command-output-file-action","last_synced_at":"2026-06-10T00:31:11.998Z","repository":{"id":65157733,"uuid":"377924880","full_name":"GuillaumeFalourd/command-output-file-action","owner":"GuillaumeFalourd","description":"Github Action to generate an output file from a command execution (success or error) 📝","archived":false,"fork":false,"pushed_at":"2023-04-13T20:25:18.000Z","size":30,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-14T21:36:04.265Z","etag":null,"topics":["all-os-supported","cli","command-line","github-actions","output-file","test"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/GuillaumeFalourd.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-06-17T18:22:55.000Z","updated_at":"2024-10-03T05:37:52.000Z","dependencies_parsed_at":"2024-11-13T00:42:05.536Z","dependency_job_id":"91b7f605-22b7-4bce-8ede-94cf64d14544","html_url":"https://github.com/GuillaumeFalourd/command-output-file-action","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GuillaumeFalourd%2Fcommand-output-file-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GuillaumeFalourd%2Fcommand-output-file-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GuillaumeFalourd%2Fcommand-output-file-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GuillaumeFalourd%2Fcommand-output-file-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GuillaumeFalourd","download_url":"https://codeload.github.com/GuillaumeFalourd/command-output-file-action/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241381519,"owners_count":19953749,"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":["all-os-supported","cli","command-line","github-actions","output-file","test"],"created_at":"2024-10-11T14:38:40.935Z","updated_at":"2026-06-10T00:31:11.992Z","avatar_url":"https://github.com/GuillaumeFalourd.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# command-output-file-action\n\n[![Action test on Ubuntu](https://github.com/GuillaumeFalourd/command-output-file-action/actions/workflows/ubuntu_test_command_output.yml/badge.svg)](https://github.com/GuillaumeFalourd/command-output-file-action/actions/workflows/ubuntu_test_command_output.yml) [![Action test on MacOS](https://github.com/GuillaumeFalourd/command-output-file-action/actions/workflows/macos_test_command_output.yml/badge.svg)](https://github.com/GuillaumeFalourd/command-output-file-action/actions/workflows/macos_test_command_output.yml) [![Action test on Windows](https://github.com/GuillaumeFalourd/command-output-file-action/actions/workflows/windows_test_command_output.yml/badge.svg)](https://github.com/GuillaumeFalourd/command-output-file-action/actions/workflows/windows_test_command_output.yml)\n\n![title](https://user-images.githubusercontent.com/22433243/122457400-fcde6c80-cf84-11eb-8ff3-65264e80c222.png)\n\nGithub Action to generate an output file from a command execution (success or error) 📝\n\n* * *\n\n## 📚 How to use this action?\n\nThe [`actions/checkout`](https://github.com/actions/checkout) is mandatory to use this action, as it will be necessary to access the repository files to get the output file after the action execution.\n\nField | Mandatory | Observation\n------------ | ------------  | -------------\n**command_line** | YES | ex: `ls -lha`\n**output_file_name** | YES | ex: `output.txt`\n**display_file_content** | NO | `YES` (default) or `NO`\n\n**⚠️ NOTES**:\n\n- A **command line error won't break the workflow**, but just extract the output on the file.\n- You can then access the **output file** in the directory **where you ran the action**.\n\n * * *\n\n### 📝 Usage example\n\n#### WITH output file display on workflow run\n\n```yaml\n    steps:\n      - uses: actions/checkout@v2.3.4\n      - uses: GuillaumeFalourd/command-output-file-action@v1.1\n        with:\n          command_line: ls -lha\n          output_file_name: output.txt\n          display_file_content: YES # this is also the default value if not informed\n```\n\n#### WITHOUT output file display on workflow run\n\n```yaml\n    steps:\n      - uses: actions/checkout@v2.3.4\n      - uses: GuillaumeFalourd/command-output-file-action@v1.1\n        with:\n          command_line: ls -lha\n          output_file_name: output.txt\n          display_file_content: NO # YES is the default value if not informed\n```\n\n## Licensed\n\nThis repository uses the [Apache License 2.0](https://github.com/GuillaumeFalourd/aws-cliaction/blob/main/LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fguillaumefalourd%2Fcommand-output-file-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fguillaumefalourd%2Fcommand-output-file-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fguillaumefalourd%2Fcommand-output-file-action/lists"}