Skip to content

Workflow file for this run

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
permissions:
actions: write
checks: write
contents: write
defaults:
run:
working-directory: /home/runner/work/compiler_log/mikiken.net
steps:
- name: Clone repository
run: |
pwd
git clone https://github.com/mikiken/mikiken.net.git --recursive
cd mikiken.net
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]"
git remote set-url origin https://mikiken:${{secrets.GITHUB_TOKEN}}@github.com/mikiken/mikiken.net.git
- name: Change the revision of submodule
run: |
pwd
cd compiler_log
pwd
git fetch
git reset --hard origin/main
- 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