mirror of
https://github.com/Sea-Haven-Industries/afterhours-shift-manager.git
synced 2026-09-30 09:03:11 +00:00
Skip DST guard on manual workflow_dispatch triggers (#26)
This commit is contained in:
parent
b08a532da3
commit
ca3b3096fc
1 changed files with 5 additions and 0 deletions
5
.github/workflows/deploy-notify.yml
vendored
5
.github/workflows/deploy-notify.yml
vendored
|
|
@ -24,6 +24,11 @@ jobs:
|
|||
- name: DST guard
|
||||
id: dst
|
||||
run: |
|
||||
if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then
|
||||
echo "Manual trigger — skipping DST guard"
|
||||
echo "skip=false" >> "$GITHUB_OUTPUT"
|
||||
exit 0
|
||||
fi
|
||||
HOUR=$(TZ=America/New_York date +%H)
|
||||
if [ "$HOUR" != "18" ]; then
|
||||
echo "ET hour is $HOUR, not 18 — wrong DST rule fired"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue