Skip to content

ci

ci #134

Workflow file for this run

name: ci
on:
push:
branches:
- main
schedule:
- cron: '0 0 * * 1'
jobs:
update_mirrors:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.10'
- name: Install apt-mirror-updater
run: pip install -r requirements.txt
- name: Update Mirror List
timeout-minutes: 30
run: |
apt-mirror-updater -l -m 20 > ubuntu-oldsorted.list
python update-mirrors.py > ubuntu-sorted.list
- name: Commit files
run: |
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git commit -m "[skip ci] Automatic update of ubuntu.list" -a
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }}