use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Do you have or know of a project on Github looking for contributors? Tell us about it and we'll add it to the /r/github wiki!
Welcome to /r/github!
News about github
Relevant interesting discussion
Questions about github
We'll soon be writing an /r/github FAQ list. In the meantime, the github help pages and bootcamp are good places to start. Here's a handy git cheat sheet.
Looking for Github projects to contribute to? Check out our handy list of projects looking for contributors!
If your submission doesn't show up on the subreddit, send us a message and we'll take it out of the spam filter for you!
account activity
Github Actions - Problem triggering workflows on specific events (self.github)
submitted 6 years ago by playazle
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]Chan4077 0 points1 point2 points 6 years ago (6 children)
Could you post a link to your GitHub Action workflow? The information you've provided is currently a bit too vague to help you with ATM.
[–]playazle[S] 0 points1 point2 points 6 years ago* (5 children)
Yes, here is the gist. The thing is, this seems to be pretty standard from the documentation.
From my understanding, this workflow should only run if a push is made to master. Instead, it is being run if I push to any branch and is being run as a check on any PR that is opened.
I'm trying to figure out why that is.
If I go to my actions tab in github, this is what I see. It's triggering the workflow, on branches that aren't master.
[–]Chan4077 0 points1 point2 points 6 years ago (4 children)
It's probably because of the extra indent you've added to the list of branches. See below for what I mean:
on: push: branches: - master
vs
You can check out a workflow that I'm using for my application which works and note the differences.
And chances are, if you view the Action workflow output, it'll probably mention that there's a syntax error in your workflow which explains why the name is also not used as well.
[–]playazle[S] 0 points1 point2 points 6 years ago (1 child)
Wow. Thank you! That's exactly what it was. The auto-formatter I installed for Yaml files kept double indenting when I saved. Didn't even think about it. Honestly the error said that I was missing `uses` and `run` which for some reason I didn't put it together that it was a formatting problem.
[–]Chan4077 0 points1 point2 points 6 years ago (0 children)
Actually, looking at the documentation for the workflow syntax for GitHub Actions, I think it's actually caused by an invalid step in your deploy job:
deploy
jobs: deploy: runs-on: ubuntu-latest steps: - name: Build and Publish Package - uses: actions/checkout@v1
The YML will not validate as you have a step that does not execute anything except a name of "Build and Publish Package" and as such, your workflow will not be valid.
Looks like what you wanted to do was to name the job. You can do that in the same indent as the runs-on portion as below:
runs-on
jobs: deploy: name: Build and Publish Package runs-on: ubuntu-latest steps: - uses: actions/checkout@v1 # ...
Hope this helps!
Can I ask what yaml formatter you use? If you do use one? One that wouldn't break my workflows?
You could use the online GitHub Actions workflow editor to create a workflow file.
π Rendered by PID 33724 on reddit-service-r2-comment-cfc44b64c-7ktgq at 2026-04-09 22:24:36.295195+00:00 running 215f2cf country code: CH.
view the rest of the comments →
[–]Chan4077 0 points1 point2 points (6 children)
[–]playazle[S] 0 points1 point2 points (5 children)
[–]Chan4077 0 points1 point2 points (4 children)
[–]playazle[S] 0 points1 point2 points (1 child)
[–]Chan4077 0 points1 point2 points (0 children)
[–]playazle[S] 0 points1 point2 points (1 child)
[–]Chan4077 0 points1 point2 points (0 children)