Update submodule #79
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 | |
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/snakemake-github-action@v1.24.0 | |
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 |