Skip to content

Commit

Permalink
Add workflow to update submodule in mikiken/mikiken.net
Browse files Browse the repository at this point in the history
  • Loading branch information
mikiken committed Nov 12, 2023
1 parent d7d0378 commit ba21819
Show file tree
Hide file tree
Showing 2 changed files with 7,471 additions and 564 deletions.
52 changes: 52 additions & 0 deletions .github/workflows/deployment.yaml
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
Loading

0 comments on commit ba21819

Please sign in to comment.