SubModule #17
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: SubModule | |
on: | |
workflow_run: | |
workflows: [CI] | |
types: | |
- completed | |
jobs: | |
push-submodule-branch: | |
name: Push branch for git-submodule | |
if: ${{ github.event.workflow_run.conclusion == 'success' }} | |
runs-on: ubuntu-latest | |
permissions: | |
actions: read | |
checks: none | |
contents: write | |
deployments: none | |
id-token: none | |
issues: none | |
discussions: none | |
packages: none | |
pages: none | |
pull-requests: none | |
repository-projects: none | |
security-events: none | |
statuses: none | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@main | |
- name: Configure git | |
run: | | |
git switch -c submodule | |
git config --local user.email "36466440+NaokiHori@users.noreply.github.com" | |
git config --local user.name "NaokiHori" | |
- name: Remove unnecessary files | |
run: | | |
git rm -r .github | |
git rm .gitignore | |
git rm -r docs | |
git rm install.sh | |
git rm Makefile | |
git rm src/main.c | |
git rm -r test | |
- name: Commit changes and push branch | |
run: | | |
git commit -m "remove files for git submodule" -a || true | |
git push -f origin submodule | |