Refresh all remote repositories #1535
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
on: | |
schedule: | |
- cron: '0 0 * * *' | |
workflow_dispatch: | |
push: | |
branches: | |
- main | |
paths: | |
- 'lib/**' | |
name: Refresh all remote repositories | |
jobs: | |
import_repo: | |
runs-on: ubuntu-24.04 | |
name: Refresh all remote repositories | |
steps: | |
- name: Install git-filter-repo | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y git-filter-repo | |
- name: Check out repository | |
uses: actions/checkout@v4 | |
with: | |
ref: main | |
fetch-depth: 0 | |
token: ${{ secrets.TOKEN_KEYS }} | |
- name: Configure Git identity | |
run: | | |
git log -n 1 --pretty=format:"git config --global user.name '%an' && git config --global user.email '%ae'" | tee /dev/stderr | sh | |
- name: Import | |
env: | |
TOKEN_KEYS: ${{ secrets.TOKEN_KEYS }} | |
run: | | |
./run.sh refresh_all || ./run.sh refresh_all || ./run.sh refresh_all | |
- name: Show job log | |
if: always() | |
run: | | |
cat refresh_all.log |