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

release Github workflow process fail when there are branches left in upstream #2888

Closed
sanderegg opened this issue Mar 14, 2022 · 0 comments · Fixed by #2889
Closed

release Github workflow process fail when there are branches left in upstream #2888

sanderegg opened this issue Mar 14, 2022 · 0 comments · Fixed by #2889
Assignees
Labels
bug buggy, it does not work as expected
Milestone

Comments

@sanderegg
Copy link
Member

- name: set target variable
        run: |
          target=$(git name-rev --refs="refs/remotes/origin/*" --name-only ${GITHUB_SHA})
          echo "TARGET=${target}" >> $GITHUB_ENV

if there are branches left over from the dependabot, then this call fails to retrieve the branch name.

It should be replaced by this:

- name: find branch name
        shell: bash
        run: echo "BRANCH_NAME=$(echo ${GITHUB_REF#refs/heads/} | tr / -)" >> $GITHUB_ENV

to be tested of course!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug buggy, it does not work as expected
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants