Skip to content

Commit

Permalink
update GitHub Actions workflow to handle manual triggers and improve …
Browse files Browse the repository at this point in the history
…nightly commit checks
  • Loading branch information
BrightXiaoHan committed Jan 21, 2025
1 parent 90150d1 commit 1c1c158
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,10 @@ jobs:
else
NIGHTLY_COMMIT=""
fi
# Compare the hashes
if [ "$MAIN_LATEST" = "$NIGHTLY_COMMIT" ]; then
if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then
echo "Manual trigger detected."
echo "::set-output name=should_run::true"
elif [ "$MAIN_LATEST" = "$NIGHTLY_COMMIT" ]; then
echo "Nightly tag is already up-to-date with the latest main commit."
echo "::set-output name=should_run::false"
else
Expand Down

0 comments on commit 1c1c158

Please sign in to comment.