Skip to content

Debugging

Debugging #21

Workflow file for this run

## Updates demo site (https://github.com/zetxek/adritian-demo)
## taken from https://stackoverflow.com/a/68213855/570087
name: Update demo site
on:
push:
## run on push to main or a new semantic tag (ie: v1.2.3)
branches:
- main
- update/workflow-checkout-action
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'
jobs:
update:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
repository: zetxek/adritian-demo
token: ${{ secrets.PRIVATE_TOKEN_GITHUB }}
submodules: true
- name: Pull & update submodules recursively
run: |
git submodule update --init --recursive
git submodule update --recursive --remote
- name: Print submodule status
run: |
git submodule status
- name: Print submodule diff
run: |
git diff --submodule=diff
- name: Commit
run: |
git config user.email "[email protected]"
git config user.name "GitHub Actions - update theme submodule"
git add --all
git commit -m "Update submodules" -m "Updating demo based on $(git submodule status)" || echo "No changes to commit (status = $(git submodule status))"
git push