Feature Request: Scheduled workflow dispatch #184831
Replies: 5 comments 4 replies
-
|
🕒 Discussion Activity Reminder 🕒 This Discussion has been labeled as dormant by an automated system for having no activity in the last 60 days. Please consider one the following actions: 1️⃣ Close as Out of Date: If the topic is no longer relevant, close the Discussion as 2️⃣ Provide More Information: Share additional details or context — or let the community know if you've found a solution on your own. 3️⃣ Mark a Reply as Answer: If your question has been answered by a reply, mark the most helpful reply as the solution. Note: This dormant notification will only apply to Discussions with the Thank you for helping bring this Discussion to a resolution! 💬 |
Beta Was this translation helpful? Give feedback.
-
|
This is a great feature request. While GitHub doesn't currently have a native "Scheduled Dispatch" UI with a calendar picker, you can achieve the exact behavior you're looking for by centralizing your logic and using Workflow Inputs. The Current Problem: The Solution: Unified Workflow Logic Here is a pattern you can use today: on:
schedule:
- cron: '0 0 * * *' # Runs daily at midnight
workflow_dispatch:
inputs:
environment:
description: 'Environment to run against'
required: true
default: 'production'
jobs:
unified_job:
runs-on: ubuntu-latest
steps:
- name: Set Configuration
run: |
# Use input if it exists (manual), otherwise use default (scheduled)
ENV=${{ github.event.inputs.environment || 'production' }}
echo "Running in $ENV"Why this helps your team:
Regarding the UI Request: |
Beta Was this translation helpful? Give feedback.
This comment was marked as low quality.
This comment was marked as low quality.
-
|
workflow_dispatch_schedule_mockup.html 💡 Proposal: New trigger event workflow_dispatch_schedule Proposed feature UX proposal (dispatcher window) A calendar date picker to select a target date This way, the dispatched run inherits the exact inputs and ref configured in the UI, eliminating the config drift issue entirely. Bonus behavior: cancel conflicting schedule triggers Example use case: Dispatching this would open the standard inputs form plus the calendar picker — giving full control over both what runs and when it runs, in a single action. Why not just edit the cron? Would love to hear if others have hit similar pain points. Happy to draft a more detailed spec if there's traction here. 🙏 |
Beta Was this translation helpful? Give feedback.
-
|
🕒 Discussion Activity Reminder 🕒 This Discussion has been labeled as dormant by an automated system for having no activity in the last 60 days. Please consider one the following actions: 1️⃣ Close as Out of Date: If the topic is no longer relevant, close the Discussion as 2️⃣ Provide More Information: Share additional details or context — or let the community know if you've found a solution on your own. 3️⃣ Mark a Reply as Answer: If your question has been answered by a reply, mark the most helpful reply as the solution. Note: This dormant notification will only apply to Discussions with the Thank you for helping bring this Discussion to a resolution! 💬 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Why are you starting this discussion?
Question
What GitHub Actions topic or product is this about?
General
Discussion Details
Hello Team,
I am opening this discussion to propose a Github Action feature that I would like to have.
It is about a new trigger event called ‘workflow_dispatch_schedule’ that combines the behaviors of workflow dispatch and schedule events. From UX perspective, I would like to have at the bottom of the dispatcher window a little calendar window where I can set the schedule for this job.
In my team, we update our workflows quite often and sometimes we have some configuration for schedule event and other configuration for workflow dispatch event (that are not matching). And sometimes the scheduling actions are failing because they are not configured properly. So instead of wasting time to solve actions implementation, we can dispatch a scheduled action that takes proper configuration. Also, this scheduled dispatcher could also cancel the already scheduled action (from schedule trigger event if that is making any sense).
Please let me know what do you think. Thanks!
Beta Was this translation helpful? Give feedback.
All reactions