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

View File

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