|
1 | 1 | name: Release Drafter
|
2 | 2 |
|
3 | 3 | on:
|
4 |
| - push: |
5 |
| - # branches to consider in the event; optional, defaults to all |
6 |
| - branches: |
7 |
| - - master |
8 |
| - - main |
9 |
| - # pull_request event is required only for autolabeler |
10 |
| - pull_request: |
11 |
| - # Only following types are handled by the action, but one can default to all as well |
12 |
| - types: [opened, reopened, synchronize] |
| 4 | + push: |
| 5 | + # branches to consider in the event; optional, defaults to all |
| 6 | + branches: |
| 7 | + - master |
| 8 | + - main |
| 9 | + # pull_request event is required only for autolabeler |
| 10 | + pull_request: |
| 11 | + # Only following types are handled by the action, but one can default to all as well |
| 12 | + types: [ opened, reopened, synchronize ] |
13 | 13 |
|
14 | 14 | jobs:
|
15 |
| - update_release_draft: |
16 |
| - runs-on: ubuntu-latest |
17 |
| - steps: |
18 |
| - # (Optional) GitHub Enterprise requires GHE_HOST variable set |
19 |
| - #- name: Set GHE_HOST |
20 |
| - # run: | |
21 |
| - # echo "GHE_HOST=${GITHUB_SERVER_URL##https:\/\/}" >> $GITHUB_ENV |
22 |
| - |
23 |
| - # Drafts your next Release notes as Pull Requests are merged into "master" |
24 |
| - - uses: release-drafter/release-drafter@v5 |
25 |
| - # (Optional) specify config name to use, relative to .github/. Default: release-drafter.yml |
26 |
| - # with: |
27 |
| - # config-name: my-config.yml |
28 |
| - # disable-autolabeler: true |
29 |
| - env: |
30 |
| - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 15 | + update_release_draft: |
| 16 | + runs-on: ubuntu-latest |
| 17 | + steps: |
| 18 | + # (Optional) GitHub Enterprise requires GHE_HOST variable set |
| 19 | + #- name: Set GHE_HOST |
| 20 | + # run: | |
| 21 | + # echo "GHE_HOST=${GITHUB_SERVER_URL##https:\/\/}" >> $GITHUB_ENV |
| 22 | + |
| 23 | + # Drafts your next Release notes as Pull Requests are merged into "master" |
| 24 | + - uses: release-drafter/release-drafter@v5 |
| 25 | + # (Optional) specify config name to use, relative to .github/. Default: release-drafter.yml |
| 26 | + # with: |
| 27 | + # config-name: my-config.yml |
| 28 | + # disable-autolabeler: true |
| 29 | + env: |
| 30 | + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
0 commit comments