gitsplit extension dir #5
Workflow file for this run
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: gitsplit | |
on: | |
push: | |
branches: | |
- main | |
- split | |
pull_request: | |
release: | |
types: [published] | |
create: | |
workflow_dispatch: | |
jobs: | |
gitsplit: | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout | |
run: git clone "$GITHUB_SERVER_URL/$GITHUB_REPOSITORY" "$GITHUB_WORKSPACE" && cd "$GITHUB_WORKSPACE" | |
- name: test-gitsplit-token | |
env: | |
GITSPLIT_SECRET: ${{ secrets.GITSPLIT_TOKEN }} | |
if: ${{ env.GITSPLIT_SECRET == '' }} | |
run: echo "GITSPLIT_TOKEN is not set" | |
- name: Split repositories | |
uses: docker://jderusse/gitsplit:latest | |
with: | |
args: gitsplit | |
env: | |
GH_TOKEN: ${{ secrets.GITSPLIT_TOKEN }} |