-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add workflow to update submodule in
mikiken/mikiken.net
- Loading branch information
Showing
2 changed files
with
7,471 additions
and
564 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
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/mikiken.net | ||
|
||
steps: | ||
- name: Clone repository | ||
run: | | ||
git clone https://github.com/mikiken/mikiken.net.git | ||
cd mikiken.net | ||
git init | ||
pwd | ||
ls -la | ||
working-directory: /home/runner/work/compiler_log/ | ||
|
||
- name: Configure git | ||
run: | | ||
pwd | ||
git config --local user.name "mikiken" | ||
git config --local user.email "[email protected]" | ||
- name: Change revision of submodule | ||
run: | | ||
pwd | ||
cd compiler_log | ||
pwd | ||
git fetch | ||
git reset --hard origin/main | ||
git status | ||
- name: Add and commit files | ||
run: | | ||
pwd | ||
git status | ||
git add . | ||
git commit -m "Update submodule via github-actions" | ||
- name: Push changes | ||
run : git push origin main |
Oops, something went wrong.