name: Build Cop

on: 
  schedule:
  - cron: "*/5 * * * *"
  # - cron: 0 11 * * MON-FRI

jobs:
  stuff:
    runs-on: ubuntu-latest     
    steps:
    #- id: assigned
    #  uses: lee-dohm/last-assigned@master
    #  with:
    #    query: 'label:build-cop-rotation'
    #    token: ${{ secrets.SPINNAKERBOT_GHA_BUILD_COP_TOKEN }}
    - id: rotation
      uses: lee-dohm/team-rotation@v1
      with:
        teamName: "@spinnaker/build-cops"
        # last: ${{ steps.assigned.outputs.last }}
    - uses: JasonEtco/create-an-issue@v2
      env:
        GITHUB_TOKEN: ${{ secrets.SPINNAKERBOT_GHA_BUILD_COP_TOKEN }}
      with:
        filename: .github/build-cop-template.md
        assignees: ${{ steps.rotation.outputs.next }}

name: Build Cop

on:
  schedule:
  - cron: "*/5 * * * *"
  # - cron: 0 11 * * MON-FRI

jobs:
  stuff:
    runs-on: ubuntu-latest
    steps:
    #- id: assigned
    #  uses: lee-dohm/last-assigned@master
    #  with:
    #    query: 'label:build-cop-rotation'
    #    token: ${{ secrets.SPINNAKERBOT_GHA_BUILD_COP_TOKEN }}
    - id: rotation
      uses: lee-dohm/team-rotation@v1
      with:
        teamName: "@spinnaker/build-cops"
        token: ${{ secrets.SPINNAKERBOT_GHA_BUILD_COP_TOKEN }}
        # last: ${{ steps.assigned.outputs.last }}
    - uses: JasonEtco/create-an-issue@v2
      env:
        GITHUB_TOKEN: ${{ secrets.SPINNAKERBOT_GHA_BUILD_COP_TOKEN }}
      with:
        filename: .github/build-cop-template.md
        assignees: ${{ steps.rotation.outputs.next }}

Add token for GH action
chore(buildcop): Add token for GH action
