mirror of
https://github.com/lukaszraczylo/semver-generator.git
synced 2026-07-12 04:40:43 +00:00
Add github_username and github_password to the action declaration.
This commit is contained in:
@@ -92,6 +92,9 @@ jobs:
|
|||||||
repository_local: true
|
repository_local: true
|
||||||
# or...
|
# or...
|
||||||
repository_url: https://github.com/lukaszraczylo/simple-gql-client
|
repository_url: https://github.com/lukaszraczylo/simple-gql-client
|
||||||
|
# when using remote repository, especially with private one:
|
||||||
|
github_username: lukaszraczylo
|
||||||
|
github_token: MySupeRSecr3tPa$$w0rd
|
||||||
- name: Semver check
|
- name: Semver check
|
||||||
run: |
|
run: |
|
||||||
echo "Semantic version detected: ${{ steps.semver.outputs.semantic_version }}"
|
echo "Semantic version detected: ${{ steps.semver.outputs.semantic_version }}"
|
||||||
|
|||||||
@@ -16,6 +16,12 @@ inputs:
|
|||||||
repository_local:
|
repository_local:
|
||||||
description: 'Use already cloned repository in current directory'
|
description: 'Use already cloned repository in current directory'
|
||||||
required: false
|
required: false
|
||||||
|
github_token:
|
||||||
|
description: 'GitHub Personal Access Token OR password'
|
||||||
|
required: false
|
||||||
|
github_username:
|
||||||
|
description: 'GitHub or other git hosting provider username'
|
||||||
|
required: false
|
||||||
outputs:
|
outputs:
|
||||||
semantic_version:
|
semantic_version:
|
||||||
description: 'Calculated semantic version'
|
description: 'Calculated semantic version'
|
||||||
|
|||||||
@@ -26,6 +26,14 @@ if [[ "${FLAGS}" == "" && "$*" == "" ]]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [[ ! -z "$INPUT_GITHUB_TOKEN" ]]; then
|
||||||
|
export GITHUB_TOKEN=$INPUT_GITHUB_TOKEN
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ ! -z "$INPUT_GITHUB_USERNAME" ]]; then
|
||||||
|
export GITHUB_USERNAME=$INPUT_GITHUB_USERNAME
|
||||||
|
fi
|
||||||
|
|
||||||
cd /github/workspace
|
cd /github/workspace
|
||||||
OUT_SEMVER_GEN=$(/go/src/app/semver-gen generate $FLAGS $*)
|
OUT_SEMVER_GEN=$(/go/src/app/semver-gen generate $FLAGS $*)
|
||||||
[ $? -eq 0 ] || exit 1
|
[ $? -eq 0 ] || exit 1
|
||||||
|
|||||||
Reference in New Issue
Block a user