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: Update submodule in mikiken/mikiken.net | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
update_submodules: | |
name: Update submodules | |
runs-on: ubuntu-20.04 | |
defaults: | |
run: | |
working-directory: /home/runner/work/compiler_log/ | |
steps: | |
- name: Clone repository | |
run: | | |
git clone https://github.com/mikiken/mikiken.net.git | |
cd mikiken.net | |
git init | |
pwd | |
- name: Configure git | |
run: | | |
git config --global user.name "mikiken" | |
git config --global user.email "[email protected]" | |
- name: Update submodules | |
id: update | |
run: git submodule update --remote --recursive | |
- name: Add and commit files | |
run: | | |
git add . | |
git commit -m "Update submodule via github-actions" | |
- name: Push changes | |
run : git push origin main |