Skip to content

Commit

Permalink
chore: improve readability
Browse files Browse the repository at this point in the history
  • Loading branch information
atlj committed Oct 27, 2023
1 parent 0038348 commit 73a3a35
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/comment-diffs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,13 +119,13 @@ jobs:
done
done
- name: Remove everything
- name: Remove everything in the working directory
run: for i in $(ls) ; do rm -rf "$i"; done;

- name: Create new empty repo
run: git init

- name: Initiate diffs
- name: Create diffs
id: create-diffs
run: |
# Source all the configuration values to load $languages, $types, and $exclude
Expand All @@ -136,7 +136,7 @@ jobs:
# Set author
git config --global user.email "[email protected]"
git config --global user.name "Github actions test"
git config --global user.name "create-react-native-library diff generator action"
function copy_commit_diff(){
library_type=$1
Expand Down Expand Up @@ -195,10 +195,9 @@ jobs:
# Add output to file
# echo "[$library_type/$language](https:/${{github.repository}}/compare/$old_version_commit_hash..$new_version_commit_hash)" >> "$output_file"
# Write the diff to the output file
git diff HEAD~ >> $output_file
echo "$output_file"
cat "$output_file"
fi
}

Expand Down

0 comments on commit 73a3a35

Please sign in to comment.