Add ignore_diff to workflow_dispatch trigger (#50449)

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

View File

@ -3,6 +3,11 @@ 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:
@ -28,7 +33,14 @@ jobs:
uses: home-assistant/actions/helpers/info@master
- name: Create requirements_diff file
run: curl -s -o requirements_diff.txt https://raw.githubusercontent.com/home-assistant/core/dev/requirements.txt
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
fi
- name: Write env-file
run: |