question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Github Actions fail to run when branch name contains a `/`

See original GitHub issue

Apologies if this is not directly related to the runner - I was unsure if there was a more appropriate project for this issue.

Describe the bug Github Actions stay in Expected — Waiting for status to be reported state when a / is included in the branch name.

To Reproduce Steps to reproduce the behavior:

  1. Create any kind of Github Action workflow
  2. Create a branch called test/branch
  3. touch test_file && git add test_file && git commit -m "Test Github Actions" && git push
  4. Observe the actions on the Conversation page and you will see something like:
Screenshot 2021-07-02 at 11 54 13

Expected behavior The workflow jobs should run

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:3
  • Comments:12 (3 by maintainers)

github_iconTop GitHub Comments

6reactions
fhammerlcommented, Jul 27, 2021

@roobert This has to do with glob patterns. Try

push:
    branches:
      - "**"

instead.

* is a wildcard that is bound by /. Use ** for recursive globstar.

1reaction
roobertcommented, Jul 27, 2021

@fhammerl - I have emailed you the workflow which exhibits this behaviour, thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Only run job on specific branch with GitHub Actions
For getting a branch name, current solution is to check GITHUB_REF environment variable - see Default environment variables and this question ...
Read more >
Running GitHub Actions only on Certain Pull Requests
GitHub Actions workflow definition allows you to filter runs based on a branch name. It is as easy as adding a branches condition...
Read more >
Github Actions Error: Could not find a default branch to fall ...
I have 4 branches dev, qa, staging and master. Staging is currently used for the live site. Qa is the branch that has...
Read more >
Learning GitHub Actions - Google Books Result
... runs Narrow your search actor : octocat branch : my - branch - name event ... Creating Status Badges for Workflows GitHub...
Read more >
ASP.NET Core 5 for Beginners: Kick-start your ASP.NET web ...
Note The CD job has been created using basic Git commands. ... pages branch continue-on-error: true run: | git config --global user.name "GitHub...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found