-
Select Topic AreaQuestion BodyFirst and foremost, I am brand new to Github Actions and not totally sure if I'm posting this in the right place. Please feel free to point me in the right direction if need be! Thanks. Anyhoo... I've been using GitHub Pages for years, but just recently started switching the deployments over to GitHub Actions. It's great! Learning a bunch and having fun. At first it was only the basic Jekyll GitHub Pages Deploy kinda workflows, but it got my foot in the door. I'm tinkering on a new project right now that has two different workflows. The first one is the same classic Jekyll Deploy workflow which is automatically triggered on pushes to main. The second workflow is for running a small "import" ruby script on a cron schedule. It scrapes some data out there on the world wide web, creates a couple files, and then commits those changes directly to main. Pretty simple stuff, super easy to get going. I was pleasantly surprised. Eventually I discovered the jobs:
import:
steps:
- name: Checkout (v4)
- name: Set up Ruby (v1.161.0)
- name: Import new episodes (bundle exec ruby import.rb)
- name: Commit changes (stefanzweifel/[email protected])
deploy:
needs: import
uses: ./.github/workflows/jekyll.ymlI'm not including all the details there, but you get the idea. And as I said before, the Jekyll workflow is extremely boiler plate stuff. I added the necessary
I can confirm that the "Commit Changes" step in the But then in the immediately followed
Is this expected behavior? Am I missing some piece of the puzzle. Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
I did some more digging and eventually found this issue from a couple years ago... There were lots of options and suggestions, but the one that worked for me was simply forcing the ref with So now the checkout action in the Jekyll build workflow looks like this: It grabs the lates commit every time now. |
Beta Was this translation helpful? Give feedback.



I did some more digging and eventually found this issue from a couple years ago...
actions/checkout#439
There were lots of options and suggestions, but the one that worked for me was simply forcing the ref with
ref: main.So now the checkout action in the Jekyll build workflow looks like this:
It grabs the lates commit every time now.