I’m trying to build a Github page from code that I copied from someone else’s repository (I’m completely new to all software involved here). The code contained here is in my workflows folder:
name: Build
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: '3'
- name: Update Gem
run: gem update --system
- name: Install Gems
run: bundle install
- name: Build Jekyll
run: bundle exec jekyll build
When I push master (I’ve confirmed I am on the branch master), nothing happens. I tried to manually trigger a build of the site and it’s now a queued workflow that I can’t cancel (there were previous build attempts that did happen but failed because of my tinkering with the code). Here’s a picture of the error message. I can locally build the site on my machine and see it by running
bundle exec jekyll serve --livereload
Any advice?
Jon Hillery is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
7
I was able to get the action to finally execute by changing the run condition to
on: [push]
I still don’t know why it wasn’t working for the master branch.
Jon Hillery is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
2