Update deployment.yaml
#6
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 | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
repository: mikiken/mikiken.net | |
submodules: recursive | |
- name: Update submodules | |
id: update | |
run: git submodule update --remote --recursive | |
- name: Add and commit files | |
run: | | |
git add . | |
git config --local user.name mikiken | |
git config --local user.email [email protected] | |
git commit -m "Update submodule via github-actions" | |
- name: Push changes | |
uses: ad-m/github-push-action@master | |
with: | |
github_token: ${{ secrets.ACTIONS_DEPLOY_KEY }} | |
branch: main |