docs(command): clean up the readme code example

This commit is contained in:
Cedric van Putten authored and GitHub committed 2022-04-07 20:11:59 +02:00
1 parent 088fd4e6fd
commit 0811162597
1 file changed
+4 -6
+4 -6
View File
@@ -34,7 +34,7 @@ Here is a summary of all the input options you can use.
| variable | default | description |
| -------------- | --------------------------- | ------------------------------------------------------------------------------------------------ |
| **github-token** | `GITHUB_TOKEN` | A GitHub token to use when commenting on PR ([read more](#github-tokens)) |
| **github-token** | `github.token` | A GitHub token to use when commenting on PR ([read more](#github-tokens)) |
## Example workflows
@@ -46,12 +46,12 @@ You can read more about this in the [GitHub Actions documentation][link-actions]
This workflow listens to the `issue_comment` event and run the `eas build` command to start a build at Expo.
```yml
name: Run EAS Command
name: EAS Command
on:
issue_comment:
types: [created]
jobs:
publish:
comment:
runs-on: ubuntu-latest
steps:
- name: 🏗 Setup repo
@@ -73,10 +73,8 @@ jobs:
- name: 📦 Install dependencies
run: yarn install
- name: Run command
- name: 💬 Respond to command
uses: expo/expo-github-action/command@v7
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
```
## Things to know