Skip to content

Commit

Permalink
really need to check diff
Browse files Browse the repository at this point in the history
  • Loading branch information
agnesgaroux committed Aug 28, 2024
1 parent a70f896 commit 0119826
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/autoformat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,16 @@ jobs:
AWS_ACCESS_KEY_ID: ${{ steps.aws_credentials.outputs.aws-access-key-id }}
AWS_SECRET_KEY: ${{ steps.aws_credentials.outputs.aws-secret-access-key }}
AWS_SESSION_TOKEN: ${{ steps.aws_credentials.outputs.aws-session-token }}
#
# - name: Check for formatting changes
# id: check_formatting_changes
# run: |
# if [[ -n $(git status --porcelain) ]]; then
# echo "changes=true" >> "$GITHUB_OUTPUT";
# fi

- name: Check for formatting changes
id: check_formatting_changes
run: |
if [[ -n $(git status --porcelain) ]]; then
echo "changes=true" >> "$GITHUB_OUTPUT";
fi
- name: Commit and push formatting changes
if: steps.check_formatting_changes.outputs.changes == 'true'
run: |
git config user.name "Buildkite on behalf of Wellcome Collection"
git config user.email "[email protected]"
Expand Down

0 comments on commit 0119826

Please sign in to comment.