Subdir to Repository #78
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: Subdir to Repository | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: "59 4 * * *" #daily (UTC) | |
jobs: | |
perform-subdir-to-repository: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install git-filter-repo | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y git-filter-repo | |
- name: Checkout Repository | |
uses: actions/checkout@v3 | |
env: | |
GITHUB_TOKEN: ${{ secrets.TOKEN_CPRIMA_FOR_RPAPUB }} | |
- name: Configure Git | |
run: | | |
git config --global user.name "GitHub Actions Runner" | |
git config --global user.email "[email protected]" | |
- name: Run Subdir to Repository Script | |
env: | |
GITHUB_TOKEN: ${{ secrets.TOKEN_CPRIMA_FOR_RPAPUB }} | |
run: | | |
chmod +x subdir_to_repository.sh | |
./subdir_to_repository.sh | |