1
mirror of https://github.com/home-assistant/core synced 2024-10-01 05:30:36 +02:00

Use empty requirements_diff for schedule and workflow_dispatch (#50450)

This commit is contained in:
Joakim Sørensen 2021-05-11 12:29:13 +02:00 committed by GitHub
parent ef67a2659e
commit 50a88eb6c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,11 +3,6 @@ name: Build wheels
# yamllint disable-line rule:truthy
on:
workflow_dispatch:
inputs:
ignore_diff:
description: "Ignore checking requirements_diff.txt"
default: "false"
required: true
schedule:
- cron: "0 4 * * *"
push:
@ -34,12 +29,10 @@ jobs:
- name: Create requirements_diff file
run: |
curl -s -o requirements_diff.txt https://raw.githubusercontent.com/home-assistant/core/dev/requirements.txt
if [[ ${{ github.event_name }} == "workflow_dispatch" ]]; then
if [[ ${{ github.event.inputs.ignore_diff }} == "true" ]]; then
echo "" > requirements_diff.txt
fi
if [[ ${{ github.event_name }} ~= (schedule|workflow_dispatch) ]]; then
touch requirements_diff.txt
else
curl -s -o requirements_diff.txt https://raw.githubusercontent.com/home-assistant/core/master/requirements.txt
fi
- name: Write env-file