Main Branch Dashboard Data #19658
This file contains 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: Main Branch Dashboard Data | |
on: | |
pull_request: | |
branches: | |
- main | |
schedule: | |
- cron: '*/30 * * * *' | |
workflow_dispatch: | |
jobs: | |
generate-dashboard-data: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Use Nodejs script to gather pipeline status | |
uses: actions/setup-node@v3 | |
with: | |
node-version: '16' | |
- run: npm ci | |
- run: node index.js | |
env: | |
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} | |
- name: merge updated details to main | |
run: | | |
git config --global user.email "<>" | |
git config --global user.name "Github Actions" | |
git add . | |
if [[ -n "$(git status --porcelain)" ]]; then | |
git commit -m "Chore (automated): update workflow details $(date)" | |
git push origin main | |
fi |