name: Auto-milestone on: pull_request_target: types: - opened - reopened - closed - ready_for_review permissions: pull-requests: write contents: write # 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: main: runs-on: ubuntu-latest if: github.event.pull_request.draft == false steps: # Note: Github will not trigger other actions from this because it uses # the GITHUB_TOKEN token - name: Run auto-milestone uses: grafana/grafana-github-actions-go/auto-milestone@d4c452f92ed826d515dccf1f62923e537953acd8 # main with: pr: ${{ github.event.pull_request.number }} token: ${{ secrets.GITHUB_TOKEN }}