Skip to content

Commit

Permalink
docs: update demo workflow to fix checkout issue (#181)
Browse files Browse the repository at this point in the history
* fix: update demo workflow to fix checkout issue

* fix: update example workflow

* Update command/README.md

Co-authored-by: Cedric van Putten <me@bycedric.com>

Co-authored-by: Cedric van Putten <me@bycedric.com>
  • Loading branch information
giautm and byCedric authored May 24, 2022
1 parent f98a64c commit 8e2559c
Showing 1 changed file with 16 additions and 8 deletions.
24 changes: 16 additions & 8 deletions command/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,34 +46,42 @@ 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: EAS Command
name: Expo Comment Bot
on:
issue_comment:
types: [created]
types: [created, edited]
concurrency:
# Limit the max concurrency to only 1 active action per pull
group: bot-${{ github.event.issue.number }}
cancel-in-progress: true
jobs:
comment:
bot:
runs-on: ubuntu-latest
# Only trigger from comments on pulls
if: ${{ github.event.issue.pull_request }}
# Allow the bot to comment on pulls
permissions:
pull-requests: write
steps:
- name: 🏗 Setup repo
uses: actions/checkout@v2

with:
# Checkout the repo on the pull
ref: refs/pull/${{ github.event.issue.number }}/merge
- name: 🏗 Setup Node
uses: actions/setup-node@v2
with:
node-version: 16.x
cache: yarn

- name: 🏗 Setup Expo
uses: expo/expo-github-action@v7
with:
eas-version: latest
expo-version: latest
token: ${{ secrets.EXPO_TOKEN }}

- name: 📦 Install dependencies
run: yarn install

- name: 💬 Respond to command
- name: 🤖 Run expo bot
uses: expo/expo-github-action/command@v7
```
Expand Down

0 comments on commit 8e2559c

Please sign in to comment.