2023-07-17 02:55:35 -05:00
|
|
|
name: Auto-milestone
|
|
|
|
on:
|
2024-06-24 05:18:30 -05:00
|
|
|
pull_request_target:
|
2023-07-17 02:55:35 -05:00
|
|
|
types:
|
2023-07-28 03:44:00 -05:00
|
|
|
- opened
|
2023-09-07 05:32:22 -05:00
|
|
|
- reopened
|
2023-07-17 02:55:35 -05:00
|
|
|
- closed
|
2024-06-24 05:18:30 -05:00
|
|
|
- ready_for_review
|
2023-07-17 02:55:35 -05:00
|
|
|
|
2024-06-24 05:18:30 -05:00
|
|
|
permissions:
|
|
|
|
pull-requests: write
|
2024-06-24 13:09:05 -05:00
|
|
|
contents: write
|
2023-08-02 06:25:23 -05:00
|
|
|
|
2024-06-24 05:18:30 -05:00
|
|
|
# Note: this action runs with write permissions on GITHUB_TOKEN even from forks
|
|
|
|
# so it must not run untrusted code (such as checking out the pull request)
|
|
|
|
jobs:
|
2023-07-17 02:55:35 -05:00
|
|
|
main:
|
|
|
|
runs-on: ubuntu-latest
|
2024-06-24 05:18:30 -05:00
|
|
|
if: github.event.pull_request.draft == false
|
2023-07-17 02:55:35 -05:00
|
|
|
steps:
|
2024-06-24 05:18:30 -05:00
|
|
|
# Note: Github will not trigger other actions from this because it uses
|
|
|
|
# the GITHUB_TOKEN token
|
2023-07-17 02:55:35 -05:00
|
|
|
- name: Run auto-milestone
|
|
|
|
uses: grafana/grafana-github-actions-go/auto-milestone@main
|
|
|
|
with:
|
|
|
|
pr: ${{ github.event.pull_request.number }}
|
2024-06-24 05:18:30 -05:00
|
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|