Skip to content

.github/workflows/update-submodules-preview.yml #505

.github/workflows/update-submodules-preview.yml

.github/workflows/update-submodules-preview.yml #505

name: Update Submodules
on: workflow_dispatch
jobs:
Update-Submodules:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: 'recursive'
fetch-depth: 0
- name: Pull down submodules
run: |
git checkout -b preview-update-submodules
git config user.name "GitHub Actions"
git config user.email "[email protected]"
git submodule update --remote --merge
git add .
git commit -m "Update Submodules"
git push -f --set-upstream origin preview-update-submodules
call-create-preview:
needs: Update-Submodules
uses: path-cc/path-cc.github.io/.github/workflows/deploy-preview.yml@master

Check failure on line 27 in .github/workflows/update-submodules-preview.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/update-submodules-preview.yml

Invalid workflow file

error parsing called workflow ".github/workflows/update-submodules-preview.yml" -> "path-cc/path-cc.github.io/.github/workflows/deploy-preview.yml@master" (source branch with sha:682d91ebd010a32cadc5ea63a1403c6eac3602fd) : workflow is not reusable as it is missing a `on.workflow_call` trigger
secrets: inherit
with:
branch: "preview-update-submodules"