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
|
name: Release Nightly
|
||||||
|
|
||||||
on:
|
on:
|
||||||
|
# Run nightly
|
||||||
schedule:
|
schedule:
|
||||||
- cron: "0 0 * * *"
|
- cron: "0 0 * * *"
|
||||||
|
|
||||||
|
# Allow for manual dispatch on GitHub
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
create-nightly-release:
|
create-nightly-release:
|
||||||
name: Create Nightly Release
|
name: Create Nightly Release
|
||||||
|
@ -26,7 +30,7 @@ jobs:
|
||||||
rm -f $HOME/commit.json
|
rm -f $HOME/commit.json
|
||||||
echo "Repository activity: $timestamp $author $url"
|
echo "Repository activity: $timestamp $author $url"
|
||||||
alive=0
|
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."
|
echo "[WARNING] Ignoring activity check: workflow triggered manually."
|
||||||
alive=1
|
alive=1
|
||||||
elif [[ $days < 1 ]]; then
|
elif [[ $days < 1 ]]; then
|
||||||
|
|
Loading…
Reference in New Issue