Skip to content

Commit

Permalink
fix(semantic-release): remove required input
Browse files Browse the repository at this point in the history
  • Loading branch information
EdieLemoine committed Mar 31, 2022
1 parent 940cf70 commit 59808a8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 14 deletions.
11 changes: 3 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -157,19 +157,14 @@ Builds a docker image from a Dockerfile. Layers are cached and pruned between jo

Run semantic release using the MyParcel bot. Requires npm dependencies to be installed.

#### Inputs

| required | name | description | Example | Default |
|----------|---------|-------------|-------------------------------|---------|
| Yes | `token` | GitHub PAT | `${{ secrets.GITHUB_TOKEN }}` ||

#### Example

```yaml
- uses: myparcelnl/actions/yarn-install@v1
- uses: myparcelnl/actions/semantic-release@v1
with:
token: ${{ secrets.GH_REPO_TOKEN }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
```

[Codecov]: https://codecov.io
Expand Down
6 changes: 0 additions & 6 deletions semantic-release/action.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,13 @@
name: 'Semantic release'
description: 'Run semantic release using the MyParcel bot'

inputs:
token:
description: 'GitHub token'
required: true

runs:
using: composite
steps:
- name: 'Run semantic release'
run: npx semantic-release
shell: bash
env:
GITHUB_TOKEN: ${{ inputs.token }}
GIT_AUTHOR_NAME: MyParcelBot
GIT_AUTHOR_EMAIL: edie+bot@myparcel.nl
GIT_COMMITTER_NAME: MyParcelBot
Expand Down

0 comments on commit 59808a8

Please sign in to comment.