ColossalAI icon indicating copy to clipboard operation
ColossalAI copied to clipboard

[workflow] fixed the post-commit failure when no formatting needed

Open FrankLeeeee opened this issue 1 year ago • 0 comments

📌 Checklist before creating the PR

  • [x] I have created an issue for this PR for traceability
  • [x] The title follows the standard format: [doc/gemini/tensor/...]: A concise description
  • [x] I have added relevant tags if possible for us to better distinguish different PRs

🚨 Issue number

Link this PR to your issue with words like fixed to automatically close the linked issue upon merge

e.g. fixed #1234, closed #1234, resolved #1234

Fixed #3021

📝 What does this PR do?

Summarize your work here. if you have any plots/diagrams/screenshots/tables, please attach them here.

This PR fixed the post-commit workflow such that it is still seen as successful if all files are well-formatted and there is nothing to commit. Have tested the new workflow file in https://github.com/hpcaitech/ColossalAI/actions/runs/4344828018.

💥 Checklist before requesting a review

  • [x] I have linked my PR to an issue (instruction)
  • [x] My issue clearly describes the problem/feature/proposal, with diagrams/charts/table/code if possible
  • [x] I have performed a self-review of my code
  • [x] I have added thorough tests.
  • [x] I have added docstrings for all the functions/methods I implemented

⭐️ Do you enjoy contributing to Colossal-AI?

  • [x] 🌝 Yes, I do.
  • [ ] 🌚 No, I don't.

Tell us more if you don't enjoy contributing to Colossal-AI.

FrankLeeeee avatar Mar 06 '23 15:03 FrankLeeeee