Skip to content

Subdir to Repository #14

Subdir to Repository

Subdir to Repository #14

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