Skip to content

Update submodule

Update submodule #95

Workflow file for this run

name: Update submodule
on:
workflow_dispatch:
schedule:
- cron: "0 1 * * 1"
push:
branches:
- main
env:
actor: "41898282+github-actions[bot]"
jobs:
update-submod:
runs-on: ubuntu-latest
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Configure git
run: |
git config --local user.email "${actor}@users.noreply.github.com"
git config --local user.name "$actor"
- name: Update submodule
run: |
git submodule update --remote
- name: Copy submod files
uses: snakemake/[email protected]
with:
directory: .
snakefile: Snakefile
args: "copy_submod_files --forcerun copy_submod_files -c 1"
- name: Commit & Push
run: |
git add _extensions/rackham/
git commit -m "🤖 Update extension from submodule" || echo "No changes to commit"
git push