Skip to content

Commit

Permalink
Document that token now has a default. (#1)
Browse files Browse the repository at this point in the history
In 1.2.0 the token variable got a sensible default value so it doesn't need to be specified for the action to work.
  • Loading branch information
buckett authored Jan 24, 2023
1 parent 88ce560 commit 30ebc9a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ The following [`inputs`](https://help.github.com/en/articles/workflow-syntax-for
| Variable | Default | Purpose |
| ------------ | ---------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- |
| `step` | | One of [`start`](#step-start), [`finish`](#step-finish), [`deactivate-env`](#step-deactivate-env), or [`delete-env`](#step-delete-env) |
| `token` | | provide your `${{ secrets.GITHUB_TOKEN }}` for API access |
| `token` | `${{ github.token }}` | provide your `${{ github.token }}` or `${{ secrets.GITHUB_TOKEN }}` for API access |
| `env` | | identifier for environment to deploy to (e.g. `staging`, `prod`, `main`) |
| `repository` | Current repository | target a specific repository for updates, e.g. `owner/repo` |
| `logs` | URL to GitHub commit checks | URL of your deployment logs |
Expand Down Expand Up @@ -114,7 +114,6 @@ jobs:
id: deployment
with:
step: start
token: ${{ secrets.GITHUB_TOKEN }}
env: release
- name: do my deploy
Expand Down Expand Up @@ -143,7 +142,6 @@ jobs:
id: deployment
with:
step: start
token: ${{ secrets.GITHUB_TOKEN }}
env: integration
- name: do my deploy
Expand Down Expand Up @@ -283,4 +281,8 @@ Then you can change your workflow to target the `v1` tag, and automatically rece
+ uses: bobheadxi/deployments@v1
```

## Migrating to v1.2.0

The `token` configuration variable now has a default value so if you are happy with the default (`${{ github.secret }}`) you can simplify the action configuration by removing this from your actions.

<br />

0 comments on commit 30ebc9a

Please sign in to comment.