Skip to content

Commit 9c49dc4

Browse files
committed
chore: generate expo preview qr code via slash command /preview
1 parent d4ab306 commit 9c49dc4

File tree

1 file changed

+17
-9
lines changed

1 file changed

+17
-9
lines changed

.github/workflows/expo-preview.yml

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,24 @@
1+
on: issue-comment
12
name: Expo QR Code Preview
2-
3-
on:
4-
pull_request:
5-
types: [opened, synchronize]
3+
permissions: write-all
64

75
jobs:
8-
preview:
6+
check_comments:
7+
name: Check comments for /preview
98
runs-on: ubuntu-latest
10-
permissions:
11-
pull-requests: write
12-
139
steps:
10+
- name: Check for command
11+
id: command
12+
uses: xt0rted/slash-command-action@v1
13+
with:
14+
token: ${{ secrets.GH+_PAT }}
15+
continue-on-error: true
16+
command: preview
17+
reaction: "true"
18+
reaction-type: rocket
19+
allow-edits: true
20+
permission-level: admin
21+
1422
- name: 🏗 Setup repo
1523
uses: actions/checkout@v4
1624
with:
@@ -104,7 +112,7 @@ jobs:
104112
105113
---
106114
107-
🎩 *Made by [Torii Studio](https://torii.studio)*
115+
🎩 *Adapted from the Workflow by [Torii Studio](https://torii.studio/guides/expo-qr-previews)*
108116
`;
109117
110118
// Fetch existing comments

0 commit comments

Comments
 (0)