fix alert upload action (#102840)
<!--
copilot:all
-->
Test run found at https://github.com/pytorch/pytorch/actions/runs/5156296463/jobs/9287113913
### <samp>🤖 Generated by Copilot at a08e8ec</samp>
### Summary
🛠️🚀🐛
<!--
1. 🛠️ for improving and fixing the workflow
2. 🚀 for speeding up the checkout step by fetching only the latest commit
3. 🐛 for correcting the syntax error in the run command
-->
Improve and fix the workflow for uploading alerts to the dashboard. Optimize the checkout step and fix the `run` command in `.github/workflows/upload_alerts.yml`.
> _To upload alerts to the dashboard_
> _The workflow needed a quick fix_
> _It fetched only one commit_
> _And ran the script with the right syntax_
> _Now it works as smooth as a fish_
### Walkthrough
* Fix syntax error in `run` command that invokes `create_alerts.py` script ([link](https://github.com/pytorch/pytorch/pull/102840/files?diff=unified&w=0#diff-946b3ad914f86182b35d4b6db415ddc39393c3017ef8fdaeee2b0e866ea831d6L23-R25))
* Add `with` option to `actions/checkout@v2` step to specify `fetch-depth: 1` and improve workflow performance ([link](https://github.com/pytorch/pytorch/pull/102840/files?diff=unified&w=0#diff-946b3ad914f86182b35d4b6db415ddc39393c3017ef8fdaeee2b0e866ea831d6R15-R16))
Pull Request resolved: https://github.com/pytorch/pytorch/pull/102840
Approved by: https://github.com/malfet