-
Notifications
You must be signed in to change notification settings - Fork 139
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
Command failed: git branch --force development --track origin/development #193
Comments
I think this is related to #13 (comment). I am looking for a fix |
I'm wondering if the whole There's a comment about why this function exists in Lines 42 to 50 in b98b091
And I think this has been fixed in v2 of the checkout action, see the release notes. |
Oh interesting! It seems like it could be removed then! I will try running the tests with it removed and see if it works |
Is there any update on this. We are unable to run our lint jobs for pull requests because of this issue. We don't autofix, anyway, so there is really no reason for us to do a checkout. |
hello, any updates on this? i'm trying to do what was suggested in #498 for a monorepo, but the action fails on the second call within a same workflow with a similar error:
the workflow is set up like so: # setup omitted
jobs:
test:
runs-on: ubuntu-latest
steps:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '16.x'
cache: 'yarn'
- name: Test monorepo
run: yarn test
- name: Run lint action on SDK
uses: wearerequired/lint-action@v2
with:
check_name: 'ESLint/SDK'
auto_fix: false
commit: false
eslint: true
eslint_dir: packages/sdk
eslint_extensions: js,ts
- name: Run lint action on React library
uses: wearerequired/lint-action@v2
with:
check_name: 'ESLint/React'
auto_fix: false
commit: false
eslint: true
eslint_dir: packages/react
eslint_extensions: js,ts,tsx
# rest of workflow file omitted |
Any update on this? We're having the same issue as @jaxonL and the only solution we found was to create two separate jobs. |
Hello!
First of all, thanks for making this.
A few days ago, I had everything set up fine and my GitHub Action was succesfully linting pull requests on master using Prettier, ESLint and Stylelint. However, in the mean time I did something that makes this lint action fail on every run:
The steps I took that I think might have caused this problem:
origin/development
(I know, bad idea — I wanted to remove a certain commit)After some further testing, it seems that I cannot reuse the name
development
for any newly created branch (and then run a PR against master).The text was updated successfully, but these errors were encountered: