Schedule Python Scripts with GitHub Actions FOR FREE | Python Automation

Поделиться
HTML-код
  • Опубликовано: 2 окт 2024

Комментарии • 57

  • @Mutual_Information
    @Mutual_Information 2 года назад +19

    Wow I only recognized GitHub actions as a CD tool. Did not realize it can be on any automated basis. That changes things. Very cool.

  • @carlitosperez7306
    @carlitosperez7306 11 месяцев назад +5

    In case someone had same issues as me:
    1. job not running:
    In the video he shows that the job is scheduled every 2 hours but in the repository code is actually set for every Monday, change code to run more often if you want to test it
    2. error 128, saying can't connect to repo when doing the build:
    Go to "Settings" > "Actions" > "General" > and in "Workflow permissions" change to > "Read and write permissions" > then "Save"
    Hopefully it will work now, it does for me :)

  • @dipanshgirdhar8817
    @dipanshgirdhar8817 2 года назад +15

    I just love this tutorial. Perfectly paced and almost covers everything. Thanks. :)

  • @2544982009
    @2544982009 2 года назад +11

    I never thought I could use github actions for other tasks different from CI/CD this video was the spark for me to dig deeper into github actions, if you could do more videos on this topic it will be great. Thanks a lot.

  • @bozok1903
    @bozok1903 2 года назад +9

    This is a wonderful tutorial. Thank you very much. It's really going to be incredibly helpful to me.

  • @nates3361
    @nates3361 2 года назад +5

    Great tutorial. I am going to use it to automatically update some dashboards I have. Are you using a custom theme for your terminal? It looks nice

    • @patloeber
      @patloeber  2 года назад +2

      iTerm2 with Dracula theme!

  • @mapneto
    @mapneto 2 года назад +1

    great tutorial! thank you a lot to share your knowledge 👏👏

  • @eyekey346
    @eyekey346 2 года назад +2

    Can you make a video about containerized scripts on remote servers? Specifically uploading them to servers and then updating them? Thanks!

  • @letstry5283
    @letstry5283 2 года назад +3

    Wow. This was really helpful, thanks a lot! I didn't know we could also use Python for GitHub actions, although I am more of a JS guy (I've made a few workflows in the past with it but config was hell)

  • @techxest3791
    @techxest3791 2 года назад +3

    Thank you for such a useful and informative tutorial. Super helpful!

  • @vsolyomi
    @vsolyomi Год назад +1

    So you run setup py and pip install every time? There's no caching or anything? I'm trying to implement similar thing with docker and dockerized action.

  • @msc06nkwzoe
    @msc06nkwzoe 8 месяцев назад

    Thanks a lot for the video!! may i ask a simple question ... how to start running the workflow? I have set up most of the thing according to the video , but it is not running...

  • @stubbeee
    @stubbeee Год назад +1

    HI Patrick, thanks for a great tutorial. I was able to replicate everything you showed and I will be using this to run a Python script we use to tag orders in our Shopify site. My one question is around the secrets code in the actual python script. I need to use a secret to connect to the Shopify API and it is very clear to me how this will run when running as a GitHub action but since that secret doesn't exist locally I think it will fail when I am doing local testing. Have you done something like this before? My initial thought was to change the python code a bit to have it look for the secret in a config file held locally (that I don't sync use .git ignore) otherwise read from the environment variable. Any advice you can share here?

  • @ewwitsantonio
    @ewwitsantonio Год назад +1

    Super helpful demonstration! Thanks so much!

  • @shivampatil_5606
    @shivampatil_5606 2 года назад +3

    Really very nice and helpful
    I never thought we could run python scripts too 😅

  • @dotanerd
    @dotanerd 3 месяца назад

    confused, where github token

  • @tomo4294
    @tomo4294 2 года назад +1

    Do you have a written tutorial for this?

  • @kevinz1991
    @kevinz1991 2 года назад +1

    Fantastic video! Thank you!

  • @Zaeemtechnical
    @Zaeemtechnical 2 года назад

    We can make free Proxy list that updates every 10 minutes, using actions...

  • @gatzsandrofuertesosorio1140
    @gatzsandrofuertesosorio1140 Год назад

    Many thanks for your video, I have a question. I had an error and I checked on GitHub Actions that my action ran well until push changes. It says remote: Write access to repository not granted, code 128. In the video you said something about secrets.GITHUB_TOKEN. is this the reason of my error? Thanks in advance,

  • @alexandergarzo9415
    @alexandergarzo9415 2 года назад

    This is fire!

  • @infinity5503
    @infinity5503 Год назад

    With this new Github action discovery. 😂
    I’m going to put my FTP server into casket for good which i used to run python code.
    Damn my manager was struggling with manual updating code in ftp server now i could just directly execute code here. ❤❤❤❤
    This tutorial definitely made my day ❤❤

  • @nagalakshminkvenkatachalam4644

    could you please clarify the query...can we run python script automatically (every 10 minutes) to write data in Google sheets...

  • @lazymutt
    @lazymutt 2 года назад

    What a great tutorial! I couldn't seem to find your tweet-scraper repo, though. Is it still available?

  • @champfisk5613
    @champfisk5613 2 года назад

    So this script is running from the GitHub side and not the local computer?

  • @Tennisbull-match-statistics
    @Tennisbull-match-statistics 2 года назад

    Very cool. I think I’ll use it to purge the cloudflare cache via Api

  • @joyjamsocial
    @joyjamsocial Год назад

    Legend!

  • @tanjt107
    @tanjt107 2 года назад

    How can I interact with databases with Github actions? Do I need a cloud DB or a local ones also work?

  • @alexdin1565
    @alexdin1565 Год назад

    how we can use multiple github accounts at same computer

  • @Kurumi.Zaphkiel
    @Kurumi.Zaphkiel Год назад

    My Action.yml doesn't seem to run at all?

  • @cooky123
    @cooky123 2 года назад

    there's a way to force the execution of the job from Github?

  • @danmelos
    @danmelos 5 месяцев назад

    Masterpiece. Thank you!

  • @mrblogge1
    @mrblogge1 2 года назад

    Will you tech encryption and decryption of python3 code

  • @vinaykrishna9122
    @vinaykrishna9122 2 года назад

    interesting video and clear cut simple explanation

  • @issekisaji
    @issekisaji 11 месяцев назад

    Is it possible to run colab notebook?

  • @Nawaho
    @Nawaho Год назад

    Hey, great stuff, thanks! But can someone explain to me what is the purpose of adding actions secret (SOME_SECRET)?

    • @staid3
      @staid3 3 месяца назад

      Hi Nawaho,
      It enables Patrick to use his secret API key (like a password) even though all the code is public. It's like secretly storing the password/key.
      And, if I wanted to run this in my github account, I would need to make my own account with the website and get my own API key, and put that in my own secrets - which only I have access to.
      I hope this helps (even though this is an old question).

  • @tech_savvy_guy
    @tech_savvy_guy 2 года назад

    This video is worthy of a billion views! Really helpful.

  • @acloudsecninja
    @acloudsecninja 8 месяцев назад

    Great Tutorial!

  • @lolf390
    @lolf390 Год назад

    Can we run selenium headless?

  • @AiPhile
    @AiPhile 2 года назад

    Thank you so much ❤️

  • @sergiimarchuk6405
    @sergiimarchuk6405 2 года назад

    Thank you.

  • @manoharali455
    @manoharali455 2 года назад

    Very interesting 👌

  • @athakur33
    @athakur33 2 года назад

    Awesome 👍

  • @JohnWick-bb4lt
    @JohnWick-bb4lt 11 месяцев назад

    wszystko za szybko, nie rozumiem co Ty robisz.

  • @0xtz_
    @0xtz_ 2 года назад

    Super cool 👌

    • @patloeber
      @patloeber  2 года назад +1

      Thank you!

    • @0xtz_
      @0xtz_ 2 года назад

      @@patloeber now I'm gonna try to automate some email tasks 😂 👌

    • @patloeber
      @patloeber  2 года назад

      Let me know if it worked!

    • @0xtz_
      @0xtz_ 2 года назад

      @@patloeber ofc

  • @larrykubin5987
    @larrykubin5987 2 года назад

    👍🐶

  • @derewigegaver747
    @derewigegaver747 2 года назад

    Dein Akzent triggert mich so hart
    Alter
    No offense

  • @chriskathumbi2292
    @chriskathumbi2292 2 года назад

    Would it be possible to provide input to the actions like passing attributes and methods as arbitrary arguments.
    eg: in dt.datetime.today()
    can I relpace 'datetime' or 'today()' with an argument after the period.
    like: dt.arg.today(), dt.datetime.arg
    with eval/exec it's possible but very unsafe
    eval(f"dt.{arg}.today()")

    • @0xDEAD_Inside
      @0xDEAD_Inside 2 года назад +2

      You can put your args in a json document in the same repo and read them with python. You can then change the args by commits.
      But don't store secrets there.