Run colrev update #105
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: Run colrev update | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '10 2 * * 3' | |
jobs: | |
update: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout the repository | |
uses: actions/checkout@v3 | |
- name: Install CoLRev | |
run: | | |
pip install git+https://github.com/CoLRev-Environment/colrev.git#egg=colrev | |
- name: Setup git | |
run: | | |
git config --global user.name "CoLRev update" | |
git config --global user.email "actions@users.noreply.github.com" | |
git config --global url.https://github.com/.insteadOf git://github.com/ | |
- name: Set branch name | |
run: | | |
echo "BRANCH_NAME=colrev-update-$(date '+%Y-%m-%d_%H-%M-%S')" >> $GITHUB_ENV | |
echo ${{ env.BRANCH_NAME }} | |
- name: Switch to branch ${{ env.BRANCH_NAME }} | |
run: | | |
git checkout -b ${{ env.BRANCH_NAME }} | |
- name: Run CoLRev update | |
run: | | |
colrev search -f | |
colrev load | |
colrev prep | |
colrev prep --polish | |
colrev prescreen | |
colrev pdfs | |
colrev screen | |
git push --set-upstream origin ${{ env.BRANCH_NAME }} | |
- name: Create pull request | |
uses: repo-sync/pull-request@v2 | |
with: | |
source_branch: "${{ env.BRANCH_NAME }}" | |
destination_branch: "main" | |
pr_title: "Pull CoLRev updates" | |
pr_body: | | |
*CoLRev updates* | |
_Created by [colrev gh-action](https://github.com/CoLRev-Environment/colrev/tree/main/colrev/template)_ |