updated cases with same doi #287
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: Maintenance | |
on: [push, pull_request] | |
jobs: | |
cleanup: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Setup python | |
uses: actions/setup-python@v1 | |
with: | |
python-version: 3.8 | |
- name: Run clean up bib files | |
run: python scripts/actions/cleanup.py | |
- name: Commit changes | |
run: sudo bash scripts/actions/commit_action.sh | |
- name: Push changes | |
uses: ad-m/github-push-action@master | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
force: true | |
checks: | |
needs: cleanup | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Setup python | |
uses: actions/setup-python@v1 | |
with: | |
python-version: 3.8 | |
- name: Install packages | |
run: pip install -r tests/requirements.txt | |
- name: Run bib file inspection | |
run: pytest | |
websites-workflow-dispatch: | |
needs: checks | |
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Trigger rebuild of the websites | |
run: bash scripts/actions/build_websites.sh | |
env: | |
WEB_TEAM_TOKEN: ${{ secrets.WEB_TEAM_TOKEN }} |