Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: update demo workflow to fix checkout issue #181

Merged
merged 3 commits into from
May 24, 2022
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 command
giautm marked this conversation as resolved.
Show resolved Hide resolved
uses: expo/expo-github-action/command@v7
```

Expand Down