git-subrepo icon indicating copy to clipboard operation
git-subrepo copied to clipboard

Subrepo in GitHub actions

Open Jonyorker opened this issue 1 year ago • 2 comments

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?

Jonyorker avatar Jan 31 '24 21:01 Jonyorker

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.

admorgan avatar Jan 31 '24 22:01 admorgan

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.

Jonyorker avatar Feb 01 '24 15:02 Jonyorker

Did you figure out the dry-run issue?

admorgan avatar Jul 11 '24 05:07 admorgan

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

admorgan avatar Jul 16 '24 01:07 admorgan