Skip to content

Conversation

@xakraz
Copy link

@xakraz xakraz commented Oct 29, 2024

Summary of Changes

This Pull Request enhances the github-signed-commit GitHub Action by adding three new input parameters: workdir, owner, and repo.

These options provide additional flexibility, allowing users to specify a working directory, as well as the owner and repository name of an other repository, enabling the action to operate on a different GitHub repository from the one where the workflow is triggered (Submodule by example).

Key Updates

  • workdir Input Parameter: Enables users to set a custom working directory path for executing git commands, improving support for multi-directory repositories.
  • owner and repo Input Parameters: Allows users to target a different GitHub repository by specifying its owner and name, rather than defaulting to the repository in the GitHub Actions workflow context.

- Update default values for `commit-message`, `owner`, `repo`, `branch-name`, `branch-push-force`, and `tag-only-if-file-changes`
- Add logging for getting info from context and setting branch according to input and context in `main.ts`
- Update repository info fetching message with input owner and repo in `main.ts`
@xakraz xakraz force-pushed the feat/remoteOwnerRepo2 branch from ecf43f1 to c7c93e3 Compare October 29, 2024 23:44
@xakraz xakraz marked this pull request as ready for review October 30, 2024 00:01
@xakraz xakraz changed the title feat: Add support for remote GitHub repository feat: Add support for remote GitHub repository + working directory Oct 30, 2024
@xakraz xakraz merged commit 2c19408 into main Oct 30, 2024
@xakraz xakraz deleted the feat/remoteOwnerRepo2 branch October 30, 2024 14:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant