Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[PROBLEM] tiny code error report #1692

Open
mhyeonsoo opened this issue Feb 21, 2025 · 0 comments
Open

[PROBLEM] tiny code error report #1692

mhyeonsoo opened this issue Feb 21, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@mhyeonsoo
Copy link

[optional format]

Identify the file to be fixed
Code_quality_and_security_scan_with_GitHub_Actions.md

Describe the problem
In the provided yaml code, there is 'fi' lacking inside

Describe a solution

name: Get Diff
        run: |
          git diff origin/main...HEAD \
            | grep '^[+-]' \
            | grep -Ev '^(---|\+\+\+)' > code_changes_only.txt
          jq -Rs '{diff: .}' code_changes_only.txt > diff.json
          if [ -f original_files_temp.json ]; then
            jq -s '.[0] * .[1]' diff.json original_files_temp.json > combined.json
            mv combined.json diff.json
          fi

Screenshots
If applicable, add screenshots to help explain your problem.

Additional context
Add any other context about the problem here.

Thanks

@mhyeonsoo mhyeonsoo added the bug Something isn't working label Feb 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant