ingydotnet / git-subrepo

MIT License
3.24k stars 268 forks source link

Subrepo in GitHub actions #611

Closed Jonyorker closed 2 months ago

Jonyorker commented 8 months ago

Hi,

I’m having a real hard time getting subrepo working in GitHub actions.

do you have any example yaml or steps to install it in the action runner?

admorgan commented 8 months ago

Generally you would use

steps:
  - uses: actions/checkout@v4
    with:
      # Repository name with owner. For example, actions/checkout
      # Default: ${{ github.repository }}
      repository: 'ingydotnet/git-subrepo'
      path: '<location that works for you>'
  - run: source <path to git-subrepo>/.rc

If can share your configuration I am happy to assist with integration.

Jonyorker commented 8 months ago

awesome that helped!

I'm having a hard time with --dry-run though.

My hope was to use git subrepo push --all --dry-run to detect if there were uncommited changes and raise an error if that was the case.

admorgan commented 2 months ago

Did you figure out the dry-run issue?

admorgan commented 2 months ago

Will close this if there isn't a response by August 1st 2024