question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Directory is specified but everything is pushed

See original GitHub issue

Hi! I want to push only a specific folder but everything is pushed instead. This is my workflow:

  - name: Commit files
      run: |
        git config --local user.email "~email~"
        git config --local user.name "~name~"
        git add Output/
        git commit -m "update"
        
    - name: GitHub Push
      uses: ad-m/github-push-action@v0.5.0
      with: 
        github_token: ${{ secrets.githubToken }}
        repository: ~repo~
        force: true
        directory: 'Output'

Am I doing something wrong? 🤔

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
ad-mcommented, Jan 11, 2020

Could you add “git status” before and after “git commit” and provide logs there? It’s only for debugging purpose.

0reactions
Wxh16144commented, Mar 30, 2021

ok, I found another way to achieve my goals 😃

Hello, may I ask what solution you are using? Thank you

Read more comments on GitHub >

github_iconTop Results From Across the Web

git - Push an android studio project under a specified directory ...
Just create new "Android" folder locally and move all files there. Then run following commands: git add . Check that files were added...
Read more >
Workflow syntax for GitHub Actions
When using the push event, you can configure a workflow to run on specific branches or tags. Use the branches filter when you...
Read more >
docker build - Docker Documentation
The docker build command builds Docker images from a Dockerfile and a “context”. A build's context is the set of files located in...
Read more >
Working with git submodules. A walkthrough - Medium
This file is a list of all submodules and respective repositories. It is created and managed by git. Do not edit it manually....
Read more >
Push commits to an additional Git repository - AWS CodeCommit
From the command prompt or terminal, switch to your local repo directory and run the git remote -v command. You should see output...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found