We can START GitHub Actions MANUALLY

แชร์
ฝัง
  • เผยแพร่เมื่อ 11 พ.ย. 2024

ความคิดเห็น • 44

  • @lakesandy5278
    @lakesandy5278 4 ปีที่แล้ว +2

    Wow! This is awesome!!! Thank you!

    • @CoderDave
      @CoderDave  4 ปีที่แล้ว

      Yes, I’m super excited about that feature! Thanks to you 😊

  • @prabakaranr9285
    @prabakaranr9285 2 ปีที่แล้ว +1

    It Works, Thanks for the info. I have been searching this for 2days

    • @CoderDave
      @CoderDave  2 ปีที่แล้ว

      Happy to know it ☺️

  • @CoderDave
    @CoderDave  4 ปีที่แล้ว +4

    ✨ *Question of the day* ✨: How much do you like this new feature? 😁

  • @MarkusEicher70
    @MarkusEicher70 2 ปีที่แล้ว +1

    Cool. Thanks for sharing.

  • @cardozoveronica
    @cardozoveronica ปีที่แล้ว

    Thank you!

    • @CoderDave
      @CoderDave  ปีที่แล้ว

      You're welcome!

  • @masha6467
    @masha6467 ปีที่แล้ว +1

    Hi
    There any way to archive the data offline before it is deleted. We want to delete the workflow runs for reducing the GitHub storage.
    If you yes please mention the answer ASAP.

    • @CoderDave
      @CoderDave  ปีที่แล้ว +1

      Hey there. AFAIK there isn’t a way

  • @whycode7304
    @whycode7304 11 หลายเดือนก่อน

    Thanks bro, you helped me on cicd

    • @CoderDave
      @CoderDave  11 หลายเดือนก่อน

      Glad to hear it

  • @piotr780
    @piotr780 2 ปีที่แล้ว +2

    How to run a workflow created on a non-master branch from the workflow_dispatch event ?

    • @CoderDave
      @CoderDave  2 ปีที่แล้ว +1

      You can select the branch in the dropdown of the "Run Workflow" button. OR, if you are doing via API, se the `ref ` parameter in the request body

    • @piotr780
      @piotr780 2 ปีที่แล้ว +3

      @@CoderDave yes, but what if my action is added in only this new branch ? I've been reading at SO that then GH CLI is needed to run this action - quite strange

  • @olehmyhal6046
    @olehmyhal6046 2 ปีที่แล้ว

    Helped! Thank you so much, i was trying to fix it all day:)

    • @CoderDave
      @CoderDave  2 ปีที่แล้ว +1

      Great to know! ☺️

  • @SamLau
    @SamLau 4 ปีที่แล้ว

    Thanks for the video.... just what i was looking for !

    • @CoderDave
      @CoderDave  4 ปีที่แล้ว

      Happy it’s been useful 😊

  • @afridim8913
    @afridim8913 2 ปีที่แล้ว +2

    Hi. Is there a way to restrict manually triggering of a workflow?
    Because anyone with access to the github project can trigger it. Is there a way to show Run workflow button to selected users?

    • @CoderDave
      @CoderDave  2 ปีที่แล้ว

      Hey, unfortunately there is no real way to restrict that. Any user with Write access to a repo (Collaborators, Admins, Owners) can trigger the `workflow_dispatch` event.

    • @afridim8913
      @afridim8913 2 ปีที่แล้ว +1

      @@CoderDave ok, thanks for the reply.

  • @workflowinmind
    @workflowinmind 2 ปีที่แล้ว +1

    I can't find how to stack it with push (on push, but with manual trigger)

    • @CoderDave
      @CoderDave  2 ปีที่แล้ว

      not sure if this is what you mean, but you cannot combine triggers to act at the same time. You can add both the push and the workflow_dispatch... but what that does is running the action on every push + additionally letting you start it manually when no push occurs

  • @jordypena7690
    @jordypena7690 3 ปีที่แล้ว +1

    hi, good video,. my question is : if I have run this workflow on push event or pull request event it doesnt take default values I try to print this but print empty , how can do that ?, thanks my bro

    • @CoderDave
      @CoderDave  3 ปีที่แล้ว

      Thanks. Unfortunately the parameters work only when you trigger the workflow manually. There is no way to have parameters on a push or pr trigger.
      The only way you could achieve that is this workaround:
      1) set some variables in the workflow with the default value you want to use
      2) add a task that check if the parameters have value, and if they do change the value of the variables
      3) in the rest of the workflow use the variables instead of the parameters

  • @syedfaizan92
    @syedfaizan92 2 ปีที่แล้ว

    this only works if you push to master branch, we don't have access to commit to master at work, can we test the trigger by using any other branch?

    • @CoderDave
      @CoderDave  2 ปีที่แล้ว

      As long as you have the actions file on the master branch, then you can run it on other branches.... but if that file has never been on master, then unfortunately you can't :(

  • @O-ka-mi
    @O-ka-mi ปีที่แล้ว +1

    how can I do this on a forked repo

    • @CoderDave
      @CoderDave  ปีที่แล้ว

      Same way as normal repos. Just add or edit the workflow yaml file and your done 😉

  • @umesh1056
    @umesh1056 2 ปีที่แล้ว +1

    Could you please share the code about how to select multiple values from the drop in the below yaml file from github actions UI(workflow dispatch) , with the current yaml file UI will allow 1 value from the options tag(for eg login:ocean , cypress:all_ocean)
    name: Invoking automation scripts
    on:
    workflow_dispatch:
    inputs:
    Applications:
    type: choice
    description: Select the application
    options: [IAM]
    TestSuites:
    type: choice
    description: Select the Test Suite
    required: true
    options:
    - login:ocean
    - cypress:all_ocean
    - cypress:all_scm
    - cypress:all_sealand
    - changePassword:ocean

    • @CoderDave
      @CoderDave  2 ปีที่แล้ว

      Unfortunately it is not possible to have a multi select as input parameter. Only a single value for each field

    • @umesh1056
      @umesh1056 2 ปีที่แล้ว

      @@CoderDave : Thank you for your reply , could you please help me with some arounds or any other suggestion which would help me to proceed further

  • @anilnidamanuri3753
    @anilnidamanuri3753 3 ปีที่แล้ว +1

    It is not working for feature branches.

    • @CoderDave
      @CoderDave  3 ปีที่แล้ว +2

      Hi, not sure what you mean. When you trigger the workflow manually, you can choose the branch you want it to run on.

    • @anilnidamanuri3753
      @anilnidamanuri3753 3 ปีที่แล้ว +3

      @@CoderDave Thanks for responding to my comment. I could only see the manual trigger option only when i add workflow dispatch in default branch. If i remove from default I don’t see it anymore.

    • @syedfaizan92
      @syedfaizan92 2 ปีที่แล้ว

      @@anilnidamanuri3753 yes, unfortunately im trying to find an alternative to it too

  • @_slier
    @_slier 2 ปีที่แล้ว +1

    yesh

  • @pjmclenon
    @pjmclenon ปีที่แล้ว

    does not work ok

    • @CoderDave
      @CoderDave  ปีที่แล้ว

      What do you mean doesn’t work? I’m using this on daily basis 😅

    • @pjmclenon
      @pjmclenon ปีที่แล้ว

      @@CoderDave --hello thxz for the reply but it doesnt work fo rme it seems my dockerfile is not properly configured not sure thxz anywayLisa

    • @CoderDave
      @CoderDave  ปีที่แล้ว

      Wait… what dockerfile ? This is native of the GitHub actions engine…