Skip to content

change label to 'return home' #3

change label to 'return home'

change label to 'return home' #3

# On file change, update submodule of sigpwny/websites using a CI bot commit.
name: Deploy guide changes to sigpwny/websites
on:
push:
paths:
- '*/**'
- '!./README.md'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
update:
name: Update git submodule
runs-on: ubuntu-latest
steps:
- name: Install SSH Client 🔑
uses: webfactory/ssh-agent@v0.7.0
with:
ssh-private-key: ${{ secrets.DEPLOY_KEY }}
- name: Checkout
uses: actions/checkout@v2
with:
repository: sigpwny/websites
submodules: true
- name: Pull & update submodules recursively
run: |
git submodule update --init --recursive
git submodule update --recursive --remote
- name: Commit
run: |
git config user.email "ci@sigpwny.com"
git config user.name "GitHub Actions - update submodules"
git add --all
git commit -m "Update submodules" || echo "No changes to commit"
git push