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 fails if branch does not exist #48

Open
psychemedia opened this issue Mar 2, 2020 · 2 comments
Open

Action fails if branch does not exist #48

psychemedia opened this issue Mar 2, 2020 · 2 comments

Comments

@psychemedia
Copy link

The action seems to fail if a pushed to branch does not already exist?

It would be useful if the branch was created in such a case.

@vadi2
Copy link

vadi2 commented Mar 10, 2020

Confirmed. For the time being, this prerequisite works:

    - name: create texts branch
      uses: peterjgrainger/[email protected]
      env: 
        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
      with:
        branch: updated-text-for-translation

@psychemedia
Copy link
Author

That action to create a branch gives an error if the branch already exists. The updated action peterjgrainger/[email protected] will create a branch if it does not exist, pass if it does.

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