Skip to content

Update Repositories List #1

Update Repositories List

Update Repositories List #1

Workflow file for this run

name: Update Repositories List
on:
schedule:
- cron: '0 0 * * *'
workflow_dispatch:
jobs:
update-file:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pyyaml requests
- name: Run update script
run: python scripts/update-repo-list.py
- name: Commit and push changes
run: |
git config --global user.name 'hmcts-platform-operations'
git config --global user.email '[email protected]'
git add production-repos.json
git commit -m 'Update repository list'
git push
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}