Code Monkey home page Code Monkey logo

Comments (3)

13rac1 avatar 13rac1 commented on August 26, 2024

That's curious. 🤔 Yes, I built this for use originally with private repos. That ref should be ignored. It should only look at head refs AKA branch names.

if [[ "$GITHUB_REF" != "refs/heads/"* ]]; then
echo "Only check branches, not tags or other refs."
exit 0
fi

Do are you using v1.1.2? Can you post the entire logs? Just redact anything you are concerned about. I suspect this is a new non-branch name format, but cannot be sure.

from block-fixup-merge-action.

TomerFi avatar TomerFi commented on August 26, 2024

Thank you for responding.

I've used version 1.1.1:

- name: Block autosquash commits
  uses: 13rac1/[email protected]

As far as the log goes, in the workflow log I see:

Run 13rac1/[email protected]
/usr/bin/docker run ... ...
...
Current ref: refs/pull/245/merge
Current branch: 45/merge
remote: Total 0 (delta 0), reused 0 (delta 0), pack-reused 0        
From https://github.com/my-org-name/my-repo-name
 * branch            master     -> FETCH_HEAD
fatal: couldn't find remote ref 45/merge

The branch name was better-ci-cd but I've also tried a couple of other test/temp branch names.

I should point out that I've only tried this with a private repository in my company's organization.
I don't know if it's related but I can try this again using a private repo in my own profile and not withing an organization.

from block-fixup-merge-action.

13rac1 avatar 13rac1 commented on August 26, 2024

Ah! This issue was fixed in 1.1.2. Please upgrade https://github.com/13rac1/block-fixup-merge-action/releases/tag/v1.1.2

from block-fixup-merge-action.

Related Issues (11)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.