Skip to content

Commit

Permalink
Fix auto-release
Browse files Browse the repository at this point in the history
* ml_collections does not have CHANGELOG.md
* Branch is master, not main

PiperOrigin-RevId: 695438090
  • Loading branch information
Conchylicultor authored and The ml_collections Authors committed Nov 11, 2024
1 parent 929df7d commit d50762c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/pytest_and_autopublish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ jobs:
publish-job:
# Only try to publish if:
# * Repo is self (prevents running from forks)
# * Branch is `main`
# * Branch is `master`
if: |
github.repository == 'google/ml_collections'
&& github.ref == 'refs/heads/main'
&& github.ref == 'refs/heads/master'
needs: pytest-job # Only publish after tests are successful
runs-on: ubuntu-latest
permissions:
Expand All @@ -57,4 +57,3 @@ jobs:
with:
pypi-token: ${{ secrets.PYPI_API_TOKEN }}
gh-token: ${{ secrets.GITHUB_TOKEN }}
parse-changelog: true

0 comments on commit d50762c

Please sign in to comment.