Schedule Python Scripts with GitHub Actions FOR FREE | Python Automation

แชร์
ฝัง
  • เผยแพร่เมื่อ 26 ก.ย. 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.

  • @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)

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

    Super helpful demonstration! Thanks so much!

  • @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!

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

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

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

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

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

      Glad I could help!

  • @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 ❤❤

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

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

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

    Fantastic video! Thank you!

  • @danmelos
    @danmelos 5 หลายเดือนก่อน

    Masterpiece. Thank you!

  • @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!

  • @Tennisbull-match-statistics
    @Tennisbull-match-statistics 2 ปีที่แล้ว

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

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

    interesting video and clear cut simple explanation

  • @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...

  • @acloudsecninja
    @acloudsecninja 8 หลายเดือนก่อน

    Great Tutorial!

  • @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.

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

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

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

    Thank you so much ❤️

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

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

  • @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?

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

    Very interesting 👌

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

    Do you have a written tutorial for this?

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

    Thank you.

  • @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,

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

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

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

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

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

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

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

    Will you tech encryption and decryption of python3 code

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

    Legend!

  • @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).

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

    how we can use multiple github accounts at same computer

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

    Is it possible to run colab notebook?

  • @Kurumi.Zaphkiel
    @Kurumi.Zaphkiel ปีที่แล้ว

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

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

    Awesome 👍

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

    Can we run selenium headless?

  • @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

  • @dotanerd
    @dotanerd 3 หลายเดือนก่อน

    confused, where github token

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

    This is fire!

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

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

  • @JohnWick-bb4lt
    @JohnWick-bb4lt 10 หลายเดือนก่อน

    wszystko za szybko, nie rozumiem co Ty robisz.

  • @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.

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

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