ci: Allow manual dispatch of release_nightly workflow
Ignore activity check when release_nightly is manually dispatched.
This commit is contained in:
parent
0ff9d7d3f5
commit
7e338335bf
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue