Replies: 1 comment 3 replies
-
|
Hi @rfalanga , Your Right now you only have: on:
push:
workflow_dispatch:So Fix options:Option 1: Trigger staging manually (simplest)Use on:
workflow_dispatch:
inputs:
environment:
required: true
type: choice
options:
- development
- stagingThen update your job condition: staging-deploy:
if: github.event.inputs.environment == 'staging'Option 2: Actually use GitHub Releases (what your condition expects)If you want
Then change trigger to: on:
release:
types: [published]And update condition: if: github.event_name == 'release'Key point:
|
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
🏷️ Discussion Type
Question
💬 Feature/Topic Area
Workflow Configuration
Discussion Details
With several people's help in this forum, I'm learning how to properly use the GitHub Flow pattern. I now have two workflows, one with two jobs (development and staging). And the other one for production. The production workflow works fine, and I know how to use it. The one with the two jobs in it, I've got the development working, but I'm not sure how to make staging work. I'm following suggestions I've gotten earlier when I've asked about GitHub Flow, but I'm not sure how to invoke it. One suggestion was that I should use this
if: github.event_name == 'release', but it never is executed when I try to execute it. I looked up the release, but it wasn't of much help to me. Here's the workflow:The
staging-deployjob never runs, and I am not sure how I should specify a GitHub Action to run it.Beta Was this translation helpful? Give feedback.
All reactions