mirror of
https://github.com/home-assistant/core.git
synced 2025-04-23 08:47:57 +00:00
Use empty requirements_diff for schedule and workflow_dispatch (#50450)
This commit is contained in:
parent
ef67a2659e
commit
50a88eb6c0
15
.github/workflows/wheels.yml
vendored
15
.github/workflows/wheels.yml
vendored
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user