Files
default/.github/workflows/check-wheels.yml
T
Joakim Sørensen 1447c2a2fc New trigger (#486)
* New trigger

* Add job name
2020-05-27 16:57:49 +02:00

34 lines
1.0 KiB
YAML

name: "Check Wheels"
on: [pull_request]
jobs:
check:
runs-on: ubuntu-latest
name: "Check Wheels"
steps:
- name: Check out repository
uses: actions/checkout@v2
- name: Clone origin
run: git clone --depth 1 https://github.com/hacs/default /tmp/default
- name: Clone new addition
run: |
repo=$(python3 -m scripts.changed.repo)
git clone --depth 1 "https://github.com/$repo" /tmp/addition
- name: Set category
id: category
run: echo "::set-output name=category::$(python3 -m scripts.changed.category)"
- name: Install dependencies
if: steps.category.outputs.category == 'integration'
run: |
python3 -m pip install setuptools wheel
python3 -m pip install aiogithubapi
- name: Check home-assistant/wheels-custom-integrations
if: steps.category.outputs.category == 'integration'
run: python3 -m scripts.check.wheels
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}