[docs] Add a step to API docs publishing about flipping monikers from 'prelease' to 'live'. #16980
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: Autoformat code | |
| on: pull_request | |
| # This action only need a single permission in order to autoformat the code. | |
| permissions: | |
| contents: read | |
| jobs: | |
| autoformat-code: | |
| name: Autoformat code | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: 'Checkout' | |
| uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| repository: ${{ github.event.pull_request.head.repo.full_name }} | |
| ref: ${{ github.event.pull_request.head.sha }} | |
| - name: 'Install .NET' | |
| uses: actions/setup-dotnet@v5 | |
| with: | |
| global-json-file: ./global.json | |
| - name: 'Autoformat' | |
| uses: rolfbjarne/autoformat@v0.6 | |
| with: | |
| script: ./tools/autoformat.sh | |
| git_user_email: 'github-actions-autoformatter@xamarin.com' | |
| git_user_name: 'GitHub Actions Autoformatter' | |
| checkoutSource: false |