Skip to content

Commit

Permalink
add diffs
Browse files Browse the repository at this point in the history
  • Loading branch information
some-natalie committed Apr 18, 2022
1 parent 171cd89 commit 82349d2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
repository: ${{ github.repository }} # run in the current repository
branch: "main" # set this to the branch you want to audit
gpg: "true" # include columns on GPG commit signing
include_diffs: "false" # include detailed diffs on each commit
include_diffs: "true" # include detailed diffs on each commit
token: ${{ github.token }} # use the default runtime token

# If you want another repository, set `repository` to "ownername/reponame" and
Expand Down
4 changes: 4 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ runs:
# download diffs if needed
if [ ${{ inputs.include_diffs }} = "true" ]; then
sed -i.bak -e "1d" log.csv
initial_commit_id=$(git rev-list --max-parents=0 HEAD)
initial_commit_short_id=$(git rev-list --max-parents=0 HEAD | cut -c 1-7)
git show "$initial_commit_id" > "$initial_commit_short_id".diff
while read -r line; do
commit_id=$(echo "$line" | awk -F"," '{print $1}')
short_commit_id=$(echo "$line" | awk -F"," '{print $2}')
Expand Down

0 comments on commit 82349d2

Please sign in to comment.