Fix docs review: classification API naming + top_k simplification #244
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Auto-release on PR merge | |
| on: | |
| pull_request: | |
| branches: [main, alpha] | |
| types: [closed] | |
| env: | |
| AUTO_VERSION: v11.2.1 | |
| jobs: | |
| auto-release: | |
| name: Create release | |
| runs-on: ubuntu-latest | |
| # Stable release: merged PR to main with 'release' label | |
| # Alpha pre-release: merged PR to alpha (no label needed) | |
| if: >- | |
| github.event.pull_request.merged == true && | |
| ( | |
| contains(github.event.pull_request.labels.*.name, 'release') || | |
| github.event.pull_request.base.ref == 'alpha' | |
| ) | |
| steps: | |
| - uses: actions/checkout@v5 | |
| with: | |
| fetch-depth: 0 | |
| fetch-tags: true | |
| - name: Unset header | |
| run: git config --local --unset http.https://github.com/.extraheader | |
| - name: Download auto | |
| run: | | |
| auto_download_url="$(curl -fsSL https://api.github.com/repos/intuit/auto/releases/tags/$AUTO_VERSION | jq -r '.assets[] | select(.name == "auto-linux.gz") | .browser_download_url')" | |
| wget -O- "$auto_download_url" | gunzip > ~/auto | |
| chmod a+x ~/auto | |
| - name: Create release | |
| run: ~/auto shipit -vv | |
| env: | |
| GH_TOKEN: ${{ secrets.AUTO_ORG_TOKEN }} |