Skip to content

Commit

Permalink
Merge pull request #103 from zubairshakoorarbisoft/zshkoor/dependenci…
Browse files Browse the repository at this point in the history
…es-dashboard

fix: Reuseability added for dependencies dashboard.
  • Loading branch information
Feanil Patel authored Jan 11, 2024
2 parents 63beacd + ca6017a commit c30520d
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion .github/workflows/repo-health-job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ on:
required: true

inputs:
DASHBOARD_NAME:
description: "Dashboard name to run the job for i.e. 'repo_health or dependencies_health . . .' "
type: string
default: "repo_health"
ORG_NAMES:
description: "Space separated list of organisation names to parse repos. i.e. 'openedx edx . . .' "
type: string
Expand Down Expand Up @@ -102,6 +106,7 @@ jobs:
token: ${{ secrets.REPO_HEALTH_BOT_TOKEN}}

- name: Run repo health org script
if: ${{ inputs.DASHBOARD_NAME == 'repo_health' }}
env:
ORG_NAMES: ${{ inputs.ORG_NAMES }}
REPORT_DATE: ${{ inputs.REPORT_DATE }}
Expand All @@ -117,11 +122,24 @@ jobs:
run: |
bash edx-repo-health/scripts/repo-health-script.sh
- name: Run dependencies health dashboard script
if: ${{ inputs.DASHBOARD_NAME == 'dependencies_health' }}
env:
REPORT_DATE: ${{ inputs.REPORT_DATE }}
GITHUB_TOKEN: ${{ secrets.REPO_HEALTH_BOT_TOKEN }}
GITHUB_USER_EMAIL: ${{ secrets.REPO_HEALTH_BOT_EMAIL }}
EDX_REPO_HEALTH_BRANCH: ${{ inputs.EDX_REPO_HEALTH_BRANCH }}
ONLY_CHECK_THIS_REPOSITORY: ${{ inputs.ONLY_CHECK_THIS_REPOSITORY }}
run: |
bash edx-repo-health/scripts/dependencies-health-script.sh
- name: Run repo health artifact script
if: ${{ inputs.DASHBOARD_NAME == 'repo_health' }}
run: |
bash edx-repo-health/scripts/repo-health-artifact.sh
- name: Upload sqlite db as artifact
if: ${{ inputs.DASHBOARD_NAME == 'repo_health' }}
uses: actions/upload-artifact@v4
with:
name: sqlite db artifact
Expand Down

0 comments on commit c30520d

Please sign in to comment.