fix: add proposed changes
This commit is contained in:
parent
ecc5ee18af
commit
e7dcfa86ed
14
README.md
14
README.md
|
@ -217,6 +217,20 @@ Set check-last-commit-only to only read last commit's message (optional). Exampl
|
||||||
check-last-commit-only: 'true'
|
check-last-commit-only: 'true'
|
||||||
```
|
```
|
||||||
|
|
||||||
|
#### **custom-git-domain:**
|
||||||
|
|
||||||
|
Set a custom domain of the git instance (optional). This is only needed, when using self-hosted instances of GitHub or alternative git provider (e.g. Gitea).
|
||||||
|
Example:
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
- name: 'Automated Version Bump'
|
||||||
|
uses: 'phips28/gh-action-bump-version@master'
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
with:
|
||||||
|
custom-git-domain: 'github.com'
|
||||||
|
```
|
||||||
|
|
||||||
#### [DEPRECATED] **push:**
|
#### [DEPRECATED] **push:**
|
||||||
**DEPRECATED** Set false you want to avoid pushing the new version tag/package.json. Example:
|
**DEPRECATED** Set false you want to avoid pushing the new version tag/package.json. Example:
|
||||||
```yaml
|
```yaml
|
||||||
|
|
|
@ -74,6 +74,10 @@ inputs:
|
||||||
description: 'Check only last commit message'
|
description: 'Check only last commit message'
|
||||||
default: 'false'
|
default: 'false'
|
||||||
required: false
|
required: false
|
||||||
|
custom-git-domain:
|
||||||
|
description: 'Set a custom domain of the git instance'
|
||||||
|
default: 'github.com'
|
||||||
|
required: false
|
||||||
push:
|
push:
|
||||||
description: '[DEPRECATED] Set to false to skip pushing the new tag'
|
description: '[DEPRECATED] Set to false to skip pushing the new tag'
|
||||||
default: 'true'
|
default: 'true'
|
||||||
|
|
2
index.js
2
index.js
|
@ -240,7 +240,7 @@ const pkg = getPackageJson();
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
const remoteRepo = `https://${process.env.GITHUB_ACTOR}:${process.env.GITHUB_TOKEN}@${process.env.CUSTOM_GIT_URL || "github.com"}/${process.env.GITHUB_REPOSITORY}.git`;
|
const remoteRepo = `https://${process.env.GITHUB_ACTOR}:${process.env.GITHUB_TOKEN}@${process.env['INPUT_CUSTOM-GIT-DOMAIN'] || "github.com"}/${process.env.GITHUB_REPOSITORY}.git`;
|
||||||
if (process.env['INPUT_SKIP-TAG'] !== 'true') {
|
if (process.env['INPUT_SKIP-TAG'] !== 'true') {
|
||||||
await runInWorkspace('git', ['tag', newVersion]);
|
await runInWorkspace('git', ['tag', newVersion]);
|
||||||
if (process.env['INPUT_SKIP-PUSH'] !== 'true') {
|
if (process.env['INPUT_SKIP-PUSH'] !== 'true') {
|
||||||
|
|
Loading…
Reference in New Issue