Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Action dont run on protected branches #51

Open
NBprojekt opened this issue May 26, 2020 · 2 comments
Open

Action dont run on protected branches #51

NBprojekt opened this issue May 26, 2020 · 2 comments

Comments

@NBprojekt
Copy link

NBprojekt commented May 26, 2020

When I run this action everything seems to work, but no issues are created.

The logs

...
"Total TODOs found: 1"
"TODOs without references: 1"
"Not on default branch -- aborting."

Is seems to work to this point but it aborts because it is not an the "default branch".
The strange thing is that currently I only have 1 branch.

Did I forgot something in the config or is it a bug?

My action

todo:
   name: Convet TODO comments to issues
   runs-on: ubuntu-latest
   
   steps:
    - uses: actions/checkout@v1
    - uses: dtinth/[email protected]
      env:
        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
        TODO_ACTIONS_MONGO_URL: ${{ secrets.DB_URL}}
@NBprojekt
Copy link
Author

I found the issue.

My master was protected is there any solution to use this action with protected branches?

@NBprojekt NBprojekt changed the title "Not on default branch -- aborting." Action dont run on protected branches May 26, 2020
@JuniorJPDJ
Copy link

In my org we created bot user and gave him permissions to push here anyway.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants