ci: Allow manual dispatch of release_nightly workflow

Ignore activity check when release_nightly is manually dispatched.
This commit is contained in:
Mike Welsh 2021-04-16 18:33:07 -07:00
parent 0ff9d7d3f5
commit 7e338335bf
1 changed files with 5 additions and 1 deletions

View File

@ -1,9 +1,13 @@
name: Release Nightly
on:
# Run nightly
schedule:
- cron: "0 0 * * *"
# Allow for manual dispatch on GitHub
workflow_dispatch:
jobs:
create-nightly-release:
name: Create Nightly Release
@ -26,7 +30,7 @@ jobs:
rm -f $HOME/commit.json
echo "Repository activity: $timestamp $author $url"
alive=0
if [ "${{ github.event_name }}" == "repository_dispatch" ]; then
if [ "${{ github.event_name }}" == "repository_dispatch" ] || [ "${{ github.event_name }}" == "workflow_dispatch" ]; then
echo "[WARNING] Ignoring activity check: workflow triggered manually."
alive=1
elif [[ $days < 1 ]]; then