Manually Trigger GitHub Actions Workflows Using workflow_dispatch - GitHub Actions Tutorial

Поділитися
Вставка
  • Опубліковано 9 кві 2023
  • In this GitHub Actions Tutorial, we'll walk through how to add a workflow_dispatch to your GitHub Actions workflow so it can be run manually, any time you want, from within the GitHub Actions tab in the GitHub web UI.
    #githubactions #github
    📝 Check out our blog post at goobar.dev to learn more about workflow_dispatch triggers for GitHub Actions:
    goobar.dev/manually-triggerin...
    📺 Check out of DevOps & Automation playlist:
    • DevOps & Automation
    🙂 Follow Me Online
    twitter ➡ / n8ebel
    website ➡ goobar.dev
    instagram ➡ / n8ebel
  • Наука та технологія

КОМЕНТАРІ • 17

  • @goobar
    @goobar  Рік тому +1

    Are you using workflow_dispatch triggers for any of your GitHub Actions workflows? If so, what types of workflows do you think benefit most from a manual trigger option?

  • @AbhijitG2
    @AbhijitG2 10 місяців тому

    Wish I had found this before ❤. Still working and looking forward to learn great number of things

  • @anusham9261
    @anusham9261 6 місяців тому +1

    Very Useful..thank you!!

    • @goobar
      @goobar  6 місяців тому

      You are welcome!

  • @barbaralhebel9236
    @barbaralhebel9236 Рік тому

    Awesome!!😁

  • @prabeshregmi1966
    @prabeshregmi1966 4 місяці тому

    Thank you brother! You saved my ass

    • @goobar
      @goobar  4 місяці тому

      Happy to help! 😄

  • @moataz4296
    @moataz4296 Рік тому

    Great ❤

    • @goobar
      @goobar  Рік тому

      Glad you liked it!

  • @lanhnguyenthi1205
    @lanhnguyenthi1205 5 місяців тому +1

    In my repo, default branch is develop. If I push workflow file into develop branch Run workflow is shown in github action, but if I push workflow file in another branch I can not see Run workflow is shown in github action.
    I want to run workflow manually on non-default branch, are there any ways to do this?

    • @goobar
      @goobar  5 місяців тому

      Yes, you should be able to buy the workflow file needs to be in the default branch. Once it's in the default branch, you should be able to run it against any other branch. This allows you to do things like putting a very simple stubbed out workflow in the default branch, check it in, then add more complex behavior in your feature branch and test that complex behavior before checking it in.

    • @lanhnguyenthi1205
      @lanhnguyenthi1205 5 місяців тому

      I understood. Thank you so much.

  • @nirmalkumar5405
    @nirmalkumar5405 Рік тому

    is there any way for selecting multiple options from a drop down

    • @afroman789
      @afroman789 2 місяці тому

      Did you ever figure out how to format it if you need to select from a dropdown before running the workflow?

    • @nirmalkumar5405
      @nirmalkumar5405 2 місяці тому

      @@afroman789 use workflow dispatch
      It’s allows you to take inputs to run a pipeline

  • @boot-strapper
    @boot-strapper 3 місяці тому

    why do github actions suck so bad comapred to gitlab????

    • @goobar
      @goobar  3 місяці тому +1

      What have you found to be so bad about them? I've never found them to be that difficult. But I also haven't used GitLab to compare to