github.heygears.com/openimsdk/tools@v0.0.49/.github/workflows/release-drafter.yml (about) 1 # Copyright © 2023 OpenIM. All rights reserved. 2 # 3 # Licensed under the Apache License, Version 2.0 (the "License"); 4 # you may not use this file except in compliance with the License. 5 # You may obtain a copy of the License at 6 # 7 # http://www.apache.org/licenses/LICENSE-2.0 8 # 9 # Unless required by applicable law or agreed to in writing, software 10 # distributed under the License is distributed on an "AS IS" BASIS, 11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 # See the License for the specific language governing permissions and 13 # limitations under the License. 14 15 name: Release Drafter 16 17 on: 18 push: 19 # branches to consider in the event; optional, defaults to all 20 branches: 21 - main 22 # pull_request event is required only for autolabeler 23 pull_request: 24 # Only following types are handled by the action, but one can default to all as well 25 # types: [opened, reopened, synchronize] 26 # pull_request_target event is required for autolabeler to support PRs from forks 27 # pull_request_target: 28 # types: [opened, reopened, synchronize] 29 30 permissions: 31 contents: read 32 33 jobs: 34 update_release_draft: 35 permissions: 36 # write permission is required to create a github release 37 contents: write 38 # write permission is required for autolabeler 39 # otherwise, read permission is required at least 40 pull-requests: write 41 runs-on: ubuntu-latest 42 steps: 43 # (Optional) GitHub Enterprise requires GHE_HOST variable set 44 #- name: Set GHE_HOST 45 # run: | 46 # echo "GHE_HOST=${GITHUB_SERVER_URL##https:\/\/}" >> $GITHUB_ENV 47 48 # Drafts your next Release notes as Pull Requests are merged into "master" 49 - uses: release-drafter/release-drafter@v6 50 # (Optional) specify config name to use, relative to .github/. Default: release-drafter.yml 51 # with: 52 # config-name: my-config.yml 53 # disable-autolabeler: true 54 env: 55 GITHUB_TOKEN: ${{ secrets.REDBOT_GITHUB_TOKEN }}