Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix a condition check on PyPI release workflow (#52)
Summary: Pull Request resolved: #52 1. There was a small bug in the PyPI release workflow where I accidentally inverted the true/false condition on whether a new version should be released or not. 2. However, (1) means that the workflow should've been triggered. The only reason it wasn't is that, by default, the `checkout` action only pull the latest commit without any history... [so using `git tag` in workflow does not return anything](actions/checkout#100) 3. To fix (2), we should use `git ls-remote` to check the existing tags on GitHub (instead of listing the local ones). Cloning the repo with full history also works, but is much less efficient. Reviewed By: nimar Differential Revision: D24696408 fbshipit-source-id: f0834187672acf28eabd06466b519405f487fc52
- Loading branch information