docs: Updated README
parent
c2f1a606df
commit
3a6c438752
|
@ -17,7 +17,7 @@ jobs:
|
|||
id: changelog
|
||||
uses: ./
|
||||
env:
|
||||
ENV: 'test'
|
||||
ENV: 'dont-use-git'
|
||||
with:
|
||||
github-token: ${{ secrets.github_token }}
|
||||
|
||||
|
@ -33,7 +33,7 @@ jobs:
|
|||
id: changelog
|
||||
uses: ./
|
||||
env:
|
||||
ENV: 'test'
|
||||
ENV: 'dont-use-git'
|
||||
with:
|
||||
github-token: ${{ secrets.github_token }}
|
||||
skip-commit: 'true'
|
||||
|
@ -50,7 +50,7 @@ jobs:
|
|||
id: changelog
|
||||
uses: ./
|
||||
env:
|
||||
ENV: 'test'
|
||||
ENV: 'dont-use-git'
|
||||
with:
|
||||
github-token: ${{ secrets.github_token }}
|
||||
version-file: 'test-file.yaml'
|
||||
|
@ -68,7 +68,7 @@ jobs:
|
|||
id: changelog
|
||||
uses: ./
|
||||
env:
|
||||
ENV: 'test'
|
||||
ENV: 'dont-use-git'
|
||||
with:
|
||||
github-token: ${{ secrets.github_token }}
|
||||
version-file: 'test-file.toml'
|
||||
|
|
|
@ -119,16 +119,16 @@ If you'd like to contribute to this project, all you need to do is clone and ins
|
|||
$ yarn install
|
||||
|
||||
# To run / test json versioning
|
||||
$ act -j test-json -P ubuntu-latest=nektos/act-environments-ubuntu:18.04 -s github_token=<your token>
|
||||
$ act -j test-json -P ubuntu-latest=nektos/act-environments-ubuntu:18.04 -s github_token=fake-token
|
||||
|
||||
# To run / test git versioning
|
||||
$ act -j test-git -P ubuntu-latest=nektos/act-environments-ubuntu:18.04 -s github_token=<your token>
|
||||
$ act -j test-git -P ubuntu-latest=nektos/act-environments-ubuntu:18.04 -s github_token=fake-token
|
||||
|
||||
# To run / test yaml versioning
|
||||
$ act -j test-yaml -P ubuntu-latest=nektos/act-environments-ubuntu:18.04 -s github_token=<your token>
|
||||
$ act -j test-yaml -P ubuntu-latest=nektos/act-environments-ubuntu:18.04 -s github_token=fake-token
|
||||
|
||||
# To run / toml git versioning
|
||||
$ act -j test-toml -P ubuntu-latest=nektos/act-environments-ubuntu:18.04 -s github_token=<your token>
|
||||
$ act -j test-toml -P ubuntu-latest=nektos/act-environments-ubuntu:18.04 -s github_token=fake-token
|
||||
```
|
||||
|
||||
## [License](./LICENSE)
|
||||
|
|
|
@ -16,7 +16,8 @@ module.exports = new (class Git {
|
|||
const gitUserName = core.getInput('git-user-name')
|
||||
const gitUserEmail = core.getInput('git-user-email')
|
||||
|
||||
if (ENV === 'test') {
|
||||
// if the env is dont-use-git then we mock exec as we are testing a workflow locally
|
||||
if (ENV === 'dont-use-git') {
|
||||
this.exec = (command) => {
|
||||
console.log(`Skipping "git ${command}" because of test env`)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue