Add dependabot #45
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: Generate PR cache by copying main | |
on: | |
pull_request: | |
types: | |
- opened | |
- reopened | |
branches: | |
- main | |
jobs: | |
preprocess: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout deployment branch | |
uses: actions/checkout@v3 | |
with: | |
ref: _cookbook_data_main | |
clean: false | |
- name: Copy cache from main to PR branch | |
shell: bash -l {0} | |
run: | | |
git config user.name github-actions | |
git config user.email [email protected] | |
git push origin HEAD:_cookbook_data_PR${{ github.event.number }} | |
- name: Add descriptive comment to PR | |
uses: thollander/actions-comment-pull-request@v2 | |
with: | |
message: > | |
This repository caches data generated from notebooks stored in other | |
repositories in the `_cookbook_data_*` branches. Regenerating this | |
cache takes about half an hour, so it is not done automatically in | |
PRs. The current value of the cache from the `main` branch has been | |
copied over to this PR's cache. | |
To regenerate the cache for this PR, create a comment on this PR | |
consisting only of the string: | |
``` | |
/regenerate-cache | |
``` |