Skip to content

Commit

Permalink
share-this-step workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
viktorbenei committed Nov 11, 2015
1 parent 6a16b23 commit aa852e4
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions bitrise.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,48 @@ workflows:
inputs:
- lane: test
- work_dir: ./fastlane-example


# ----------------------------------------------------------------
# --- workflows to Share this step into a Step Library
share-this-step:
envs:
# if you want to share this step into a StepLib
- MY_STEPLIB_REPO_FORK_GIT_URL:
- STEP_ID_IN_STEPLIB: fastlane
- STEP_GIT_VERION_TAG_TO_SHARE: 2.1.0
- STEP_GIT_CLONE_URL: https://github.com/bitrise-io/steps-fastlane.git
description: |-
If this is the first time you try to share a Step you should
first call: $ bitrise share
This will print you a guide, and information about how Step sharing
works. Please read it at least once!
As noted in the Step sharing guide you'll have to fork the
StepLib you want to share this step into. Once you're done with forking
the repository you should set your own fork's git clone URL
in the `.bitrise.secrets.yml` file, or here in the `envs` section,
as the value of the `MY_STEPLIB_REPO_FORK_GIT_URL` environment.
You're now ready to share this Step, just make sure that
the `STEP_ID_IN_STEPLIB` and `STEP_GIT_VERION_TAG_TO_SHARE`
environments are set to the desired values!
To share this Step into a StepLib you can just run: $ bitrise run share-this-step
Once it finishes the only thing left is to actually create a Pull Request,
the way described in the guide printed at the end of the process.
steps:
- script:
inputs:
- content: |-
#!/bin/bash
set -e
set -x
bitrise share start -c ${MY_STEPLIB_REPO_FORK_GIT_URL}
bitrise share create --stepid ${STEP_ID_IN_STEPLIB} --tag ${STEP_GIT_VERION_TAG_TO_SHARE} --git ${STEP_GIT_CLONE_URL}
bitrise share finish

0 comments on commit aa852e4

Please sign in to comment.