This repository has been archived by the owner on Sep 14, 2023. It is now read-only.
Update cosmos #105
This file contains 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: | |
# For creating draft releases | |
push: | |
branches: | |
- main | |
# For autolabeling PRs | |
pull_request: | |
types: [ synchronize, opened, reopened, ready_for_review, converted_to_draft ] | |
# For autolabeling PRs from forks | |
pull_request_target: | |
types: [ synchronize, opened, reopened, ready_for_review ] | |
# For manually running the autolabeler | |
workflow_dispatch: | |
permissions: | |
contents: read | |
jobs: | |
update_release_draft: | |
name: Update Release Draft | |
permissions: | |
# write permission is required to create a github release | |
contents: write | |
# write permission is required for autolabeler | |
# otherwise, read permission is required at least | |
pull-requests: write | |
runs-on: ubuntu-latest | |
steps: | |
- uses: release-drafter/release-drafter@v5 | |
with: | |
# Allows the auto-labeler to run without adding unmerged PRs to the draft | |
disable-releaser: ${{ github.ref_name != 'main' }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |