mirror of
https://github.com/Sea-Haven-Industries/afterhours-shift-manager.git
synced 2026-10-04 18:22:04 +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
|
- name: DST guard
|
||||||
id: dst
|
id: dst
|
||||||
run: |
|
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)
|
HOUR=$(TZ=America/New_York date +%H)
|
||||||
if [ "$HOUR" != "18" ]; then
|
if [ "$HOUR" != "18" ]; then
|
||||||
echo "ET hour is $HOUR, not 18 — wrong DST rule fired"
|
echo "ET hour is $HOUR, not 18 — wrong DST rule fired"
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue