Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need to add multiple repo in workflow to measure deployment frequency #59

Open
sachinmane1983 opened this issue Jun 17, 2024 · 2 comments

Comments

@sachinmane1983
Copy link

No description provided.

@samsmithnz
Copy link
Collaborator

I have been thinking about this one a lot lately. I do think it's a good one to prioritize.

@sachinmane1983
Copy link
Author

sachinmane1983 commented Jun 17, 2024

i have created this workflow using this action to measure deployment frequency for multiple repos
`name: CI

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4

  - name: Generate deployment frequency markdown file
    id: deployment-frequency
    uses: DeveloperMetrics/deployment-frequency@main
    with:
      workflows: 'CI'
      actions-token: "${{ secrets.GITHUB_TOKEN }}"
      number-of-days: 7
      owner-repo: |
        KHQ/advice-auditing-frontend
        KHQ/advice-audit-data
        KQ/advice-auditing-server
        
  - name: Display deployment frequency
    run: |
      echo "Deployment frequency over the last 7 days:"
      cat ${{ steps.deployment-frequency.outputs.markdown-file }}
      
      `

but its saying that
Run $result = /home/runner/work/_actions/DeveloperMetrics/deployment-frequency/main/src/deploymentfrequency.ps1 -ownerRepo "KHQ/advice-auditing-frontend
$result = /home/runner/work/_actions/DeveloperMetrics/deployment-frequency/main/src/deploymentfrequency.ps1 -ownerRepo "KHQ/advice-auditing-frontend
KHQ/advice-audit-data
KHQ/advice-auditing-server
" -workflows "CI" -branch "main" -numberOfDays 7 -patToken "" -actionsToken "***" -appId "" -appInstallationId "" -appPrivateKey ""
$filePath="dora-deployment-frequency-markdown.md"
Set-Content -Path $filePath -Value $result
"markdown-file=$filePath" | Out-File -FilePath $env:GITHUB_OUTPUT -Append
Write-Output $result >> $env:GITHUB_STEP_SUMMARY
shell: /usr/bin/pwsh -command ". '{0}'"
Owner/Repo: KHQ/advice-auditing-frontend
KHQ
Workflows: CI
Branch: main
Number of days: 7
Authentication detected: GITHUB TOKEN
Repo is not found or you do not have access

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants