# README
Update GitOps repository
Updates files of a GitOps repository either by pushing changes directly to a given folder of a given branch or by opening a pull request to it. URL of the pull request is exposed as an output in the latter case. Updated files are go templates rendered by substituting given values. A Github username and Personal Access Token must be provided with access to the repository.
How to test this Step
- Clone this repo
- Set up .bitrise.secrets.yml file with the following content:
envs:
- DEPLOY_TOKEN: YOUR PAT
- MY_STEPLIB_REPO_FORK_GIT_URL: YOUR FORK HTTP URL OF THE STEPLIB REPO
- Export these variables in your terminal
$DEPLOY_USER
: your GH username$DEPLOY_REPO_URL
: Where to test commit, e.g. https://github.com/bitrise-io/sandbox-deployments.git$DEPLOY_PATH
: An existing folder in that repo, e.g. zsolt-test
- Run
bitrise run test
which will open a PR - Confirm the PR is opened but close it
How to release
- Merge the PR
- Create a new release / tag
- Fork the steplib https://github.com/bitrise-io/bitrise-steplib
- Set YOUR fork steplib URL in the secrets file (see above)
- Export the step version
$BITRISE_STEP_VERSION
in your terminal, without the prefixv
- Run
bitrise run share-this-step
- Go to your forked steplib and create a PR
- Get someone to review your PR and merge it
# Packages
No description provided by the author