Skip to content

Commit

Permalink
Trying git diff without pager config
Browse files Browse the repository at this point in the history
  • Loading branch information
jadesym committed Nov 17, 2022
1 parent d273377 commit f6385df
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ The commit hash of the commit that was reverted.
if: always() && (needs.tests.result == 'failure')
steps:
- name: Automatic Commit Revert
uses: 'tofu-apis/[email protected].34'
uses: 'tofu-apis/[email protected].35'
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
is-push-enabled: 'true'
Expand Down
4 changes: 3 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,9 @@ runs:
- name: Outputting diff of revert commit
if: ${{ inputs.should-log-diff == 'true' }}
# Comparing against branch minus one commit since the last commit should be the revert commit.
run: git diff ${{ github.ref_name }}~1 --name-only
run: |
git config --global pager.diff false
git diff ${{ github.ref_name }}~1
shell: bash
- name: Automatic commit push to repo
if: ${{ inputs.is-push-enabled == 'true' }}
Expand Down

0 comments on commit f6385df

Please sign in to comment.