Update: switch to self hosted runner #8
Workflow file for this run
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 Dependencies | |
on: | |
pull_request: | |
jobs: | |
dependencies: | |
name: Update dependencies | |
runs-on: self-hosted | |
if: | |
( | |
contains(github.event.pull_request.labels.*.name, 'dependencies') == true && | |
github.base_ref == 'main' | |
) || | |
contains(github.event.pull_request.labels.*.name, 'ci') == true | |
permissions: | |
contents: read | |
pull-requests: write | |
steps: | |
- name: Checkout Head | |
uses: actions/checkout@v4 | |
with: | |
submodules: 'true' | |
ref: ${{ github.event.pull_request.head.sha }} | |
fetch-depth: 1 | |
- name: Update dependencies | |
run: | | |
~/test/bin/python -m pip install --upgrade pip | |
~/test/bin/python -m pip install -U -r requirements.txt | |
- name: Test documentation | |
run: | | |
make lazy-build PYTHON=~/test/bin/python3 | |
- name: Commit dependencies | |
run: | | |
~/build/bin/python -m pip install --upgrade pip | |
~/build/bin/python -m pip install -U -r requirements.txt | |
- name: Close PR | |
run: | | |
gh pr close -R ${{ github.repository }} -B ${{ github.head_ref }} -m "Dependencies updated" |