repo: Update excluded devices #16
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: Device Catalog Updater | |
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- '**' | |
paths: | |
- 'app/src/main/res/raw/excluded_devices.csv' | |
jobs: | |
update: | |
name: Device Catalog Updater | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 1 | |
sparse-checkout: | | |
README.md | |
.github/excluded-devices.csv | |
.github/device-catalog-manager.py | |
app/src/main/res/raw/excluded_devices.csv | |
- name: List root folder | |
run: | | |
pwd | |
ls -la | |
- name: List .github folder | |
run: | | |
cp app/src/main/res/raw/excluded_devices.csv .github | |
cd .github | |
pwd | |
ls -la | |
- name: Update excluded devices in README via Python | |
shell: sh | |
run: | | |
cd .github | |
python device-catalog-manager.py | |
- name: Commit updated README.md | |
run: | | |
git config user.name github-actions | |
git config user.email [email protected] | |
git checkout main | |
git add README.md | |
git commit -m "repo: Fill README with excluded devices" | |
git push |