docs: Updated README

releases/v3
Tycho Bokdam 2020-07-03 22:04:16 +02:00
parent c2f1a606df
commit 3a6c438752
No known key found for this signature in database
GPG Key ID: A0FAE77C8CDF33C7
3 changed files with 10 additions and 9 deletions

View File

@ -17,7 +17,7 @@ jobs:
id: changelog id: changelog
uses: ./ uses: ./
env: env:
ENV: 'test' ENV: 'dont-use-git'
with: with:
github-token: ${{ secrets.github_token }} github-token: ${{ secrets.github_token }}
@ -33,7 +33,7 @@ jobs:
id: changelog id: changelog
uses: ./ uses: ./
env: env:
ENV: 'test' ENV: 'dont-use-git'
with: with:
github-token: ${{ secrets.github_token }} github-token: ${{ secrets.github_token }}
skip-commit: 'true' skip-commit: 'true'
@ -50,7 +50,7 @@ jobs:
id: changelog id: changelog
uses: ./ uses: ./
env: env:
ENV: 'test' ENV: 'dont-use-git'
with: with:
github-token: ${{ secrets.github_token }} github-token: ${{ secrets.github_token }}
version-file: 'test-file.yaml' version-file: 'test-file.yaml'
@ -68,7 +68,7 @@ jobs:
id: changelog id: changelog
uses: ./ uses: ./
env: env:
ENV: 'test' ENV: 'dont-use-git'
with: with:
github-token: ${{ secrets.github_token }} github-token: ${{ secrets.github_token }}
version-file: 'test-file.toml' version-file: 'test-file.toml'

View File

@ -119,16 +119,16 @@ If you'd like to contribute to this project, all you need to do is clone and ins
$ yarn install $ yarn install
# To run / test json versioning # 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 # 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 # 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 # 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) ## [License](./LICENSE)

View File

@ -16,7 +16,8 @@ module.exports = new (class Git {
const gitUserName = core.getInput('git-user-name') const gitUserName = core.getInput('git-user-name')
const gitUserEmail = core.getInput('git-user-email') 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) => { this.exec = (command) => {
console.log(`Skipping "git ${command}" because of test env`) console.log(`Skipping "git ${command}" because of test env`)
} }