DEV-46536 grafana 10 disable publish dashboards from UI #78
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | name: Auto-milestone | |
| on: | |
| pull_request: | |
| types: | |
| - opened | |
| - reopened | |
| - closed | |
| jobs: | |
| config: | |
| runs-on: "ubuntu-latest" | |
| outputs: | |
| has-secrets: ${{ steps.check.outputs.has-secrets }} | |
| steps: | |
| - name: "Check for secrets" | |
| id: check | |
| shell: bash | |
| run: | | |
| if [ -n "${{ (secrets.GRAFANA_DELIVERY_BOT_APP_ID != '' && secrets.GRAFANA_DELIVERY_BOT_APP_PEM != '') || '' }}" ]; then | |
| echo "has-secrets=1" >> "$GITHUB_OUTPUT" | |
| fi | |
| main: | |
| needs: config | |
| if: needs.config.outputs.has-secrets | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: "Generate token" | |
| id: generate_token | |
| uses: tibdex/github-app-token@b62528385c34dbc9f38e5f4225ac829252d1ea92 | |
| with: | |
| app_id: ${{ secrets.GRAFANA_DELIVERY_BOT_APP_ID }} | |
| private_key: ${{ secrets.GRAFANA_DELIVERY_BOT_APP_PEM }} | |
| - name: Run auto-milestone | |
| uses: grafana/grafana-github-actions-go/auto-milestone@main | |
| with: | |
| pr: ${{ github.event.pull_request.number }} | |
| token: ${{ steps.generate_token.outputs.token }} |