GitHub action used to get git repository informations
There are no inputs for this GitHub action
There are no outputs for this action
The list o env vars generated using this GitHub action:
- RELEASE_VERSION: Git commit hash when source code branch is develop or git tag when source code generates a new tag version;
- GITOPS_BRANCH: When source code branch is develop branch the GitOps branch is defined as develop, when source code generates a new tag version the GitOps branch is defined as release branch;
# Example using this actions
- name: Get git repository informations
uses: <ORG NAME>/github-actions-git-informations@main
# Example generated env vars
- name: Set up JDK 11
if: ${{ env.GITOPS_BRANCH }} == 'develop' # <---- This line is the example
uses: actions/setup-java@v1
with:
java-version: 11
If you wants to update or make changes in module code you should use the develop branch of this repository, you can test your module changes passing the @develop
in module calling. Ex.:
# Example using this actions
- name: Get git repository informations
uses: <ORG NAME>/github-actions-git-informations@develop
After execute all tests you can open a pull request to the main branch.