{"id":16497181,"url":"https://github.com/guillaumefalourd/diff-action","last_synced_at":"2025-07-02T07:35:14.742Z","repository":{"id":65157734,"uuid":"377556343","full_name":"GuillaumeFalourd/diff-action","owner":"GuillaumeFalourd","description":"Github Action to compare 2 files using diff 🕵️","archived":false,"fork":false,"pushed_at":"2021-06-17T21:42:50.000Z","size":55,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-30T10:53:58.880Z","etag":null,"topics":["all-os-supported","compare-files","diff","github-actions","testing","useful","utilities"],"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}},"created_at":"2021-06-16T16:13:05.000Z","updated_at":"2021-06-17T21:40:42.000Z","dependencies_parsed_at":"2023-01-13T15:43:11.833Z","dependency_job_id":null,"html_url":"https://github.com/GuillaumeFalourd/diff-action","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/GuillaumeFalourd/diff-action","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GuillaumeFalourd%2Fdiff-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GuillaumeFalourd%2Fdiff-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GuillaumeFalourd%2Fdiff-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GuillaumeFalourd%2Fdiff-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GuillaumeFalourd","download_url":"https://codeload.github.com/GuillaumeFalourd/diff-action/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GuillaumeFalourd%2Fdiff-action/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263094377,"owners_count":23412962,"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","compare-files","diff","github-actions","testing","useful","utilities"],"created_at":"2024-10-11T14:38:39.354Z","updated_at":"2025-07-02T07:35:14.681Z","avatar_url":"https://github.com/GuillaumeFalourd.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# diff-action\n\n[![Diff Action Test (FILE Passed)](https://github.com/GuillaumeFalourd/diff-action/actions/workflows/test_file_passed.yml/badge.svg)](https://github.com/GuillaumeFalourd/diff-action/actions/workflows/test_file_passed.yml) [![Diff Action Test (FILE Failed)](https://github.com/GuillaumeFalourd/diff-action/actions/workflows/test_file_failed.yml/badge.svg)](https://github.com/GuillaumeFalourd/diff-action/actions/workflows/test_file_failed.yml)\n\n[![Diff Action Test (LINE Passed)](https://github.com/GuillaumeFalourd/diff-action/actions/workflows/test_line_passed.yml/badge.svg)](https://github.com/GuillaumeFalourd/diff-action/actions/workflows/test_line_passed.yml) [![Diff Action Test (LINE Failed)](https://github.com/GuillaumeFalourd/diff-action/actions/workflows/test_line_failed.yml/badge.svg)](https://github.com/GuillaumeFalourd/diff-action/actions/workflows/test_line_failed.yml)\n\n![diff-action](https://user-images.githubusercontent.com/22433243/122283163-a4df3180-cec2-11eb-99e1-0561639adf29.png)\n\nGithub Action to compare 2 files using [diff](http://www.linuxguide.it/command_line/linux-manpage/do.php?file=diff) 🕵️\n\n* * *\n\n## 🖥 Supported OS\n\nOS | SUPPORTED\n---------- | ------------\n**LINUX** | YES\n**MACOS** | YES\n**WINDOWS** | YES\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 need to access the repository files.\n\nField | Mandatory | Observation\n------------ | ------------  | -------------\n**first_file_path** | YES | ex: `path/to/file1.txt`\n**second_file_path** | YES | ex: `path/to/file2.txt`\n**expected_result** | NO | `PASSED` (default) or `FAILED`\n**specific_line** | NO | ex: `1` (integer value only)\n\n**Will return FAIL**: If the `diff` output of the 2 files/lines is different than the `expected_result` input value.\n\n**Will return SUCCESS**: If the `diff` output of the 2 files/lines is equal the `expected_result` input value.\n\n * * *\n\n### 🕵️📋 Comparing 2 files\n\n#### Expecting files to be identicals\n\n```yaml\n    steps:\n      - uses: actions/checkout@v2.3.4\n      - uses: GuillaumeFalourd/diff-action@v1\n        with:\n          first_file_path: path/to/file1.txt\n          second_file_path: path/to/file2.txt\n          expected_result: PASSED\n```\n\n#### Expecting files to be differents\n\n```yaml\n    steps:\n      - uses: actions/checkout@v2.3.4\n      - uses: GuillaumeFalourd/diff-action@v1\n        with:\n          first_file_path: path/to/file1.txt\n          second_file_path: path/to/file2.txt\n          expected_result: FAILED\n```\n\n### 🕵📝 Comparing 2 lines\n\n#### Expecting lines to be identicals\n\n```yaml\n    steps:\n      - uses: actions/checkout@v2.3.4\n      - uses: GuillaumeFalourd/diff-action@v1\n        with:\n          first_file_path: path/to/file1.txt\n          second_file_path: path/to/file2.txt\n          specific_line: 3\n          expected_result: PASSED\n```\n\n#### Expecting lines to be differents\n\n```yaml\n    steps:\n      - uses: actions/checkout@v2.3.4\n      - uses: GuillaumeFalourd/diff-action@v1\n        with:\n          first_file_path: path/to/file1.txt\n          second_file_path: path/to/file2.txt\n          specific_line: 3\n          expected_result: FAILED\n```\n\n### ☑️🔴 Workflow examples returning error\n\n[![Diff Action Test (FILE Error)](https://github.com/GuillaumeFalourd/diff-action/actions/workflows/test_file_error.yml/badge.svg)](https://github.com/GuillaumeFalourd/diff-action/actions/workflows/test_file_error.yml) : [Workflow with test returning ERROR (File) 📋](https://github.com/GuillaumeFalourd/diff-action/blob/main/.github/workflows/test_file_error.yml)\n\n[![Diff Action Test (LINE Error)](https://github.com/GuillaumeFalourd/diff-action/actions/workflows/test_line_error.yml/badge.svg)](https://github.com/GuillaumeFalourd/diff-action/actions/workflows/test_line_error.yml) : [Workflow with test returning ERROR (Line) 📝](https://github.com/GuillaumeFalourd/diff-action/blob/main/.github/workflows/test_line_error.yml)\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%2Fdiff-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fguillaumefalourd%2Fdiff-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fguillaumefalourd%2Fdiff-action/lists"}