Making changes to the publish CLI to for MOS Publish, Custom connector creation and App registrations #916
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: Release Drafter | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| types: [opened, reopened, synchronize, closed] | |
| # No global permissions — each job declares only what it needs. | |
| jobs: | |
| # On push to main: update the draft release (requires contents: write). | |
| update_release_draft: | |
| if: github.event_name == 'push' | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| pull-requests: read | |
| steps: | |
| - uses: release-drafter/release-drafter@v6 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| # On pull_request: run the autolabeler (labels PRs by branch/title/files). | |
| # contents: write is intentionally omitted — PR events do not need to | |
| # create or modify releases. pull-requests: write is required for autolabeler. | |
| label_pr: | |
| if: github.event_name == 'pull_request' | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| pull-requests: write | |
| steps: | |
| - uses: release-drafter/release-drafter@v6 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |