Skip to content

Commit dcdd1e8

Browse files
authored
Merge pull request #5 from timmyjose-experiments/generate-qr-code-with-slash
chore: generate expo preview qr code via slash command /preview
2 parents d4ab306 + 4e55a0e commit dcdd1e8

File tree

1 file changed

+19
-9
lines changed

1 file changed

+19
-9
lines changed

.github/workflows/expo-preview.yml

+19-9
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,26 @@
1+
on:
2+
issue_comment:
3+
types: [created]
14
name: Expo QR Code Preview
2-
3-
on:
4-
pull_request:
5-
types: [opened, synchronize]
5+
permissions: write-all
66

77
jobs:
8-
preview:
8+
check_comments:
9+
name: Check comments for /preview
910
runs-on: ubuntu-latest
10-
permissions:
11-
pull-requests: write
12-
1311
steps:
12+
- name: Check for command
13+
id: command
14+
uses: xt0rted/slash-command-action@v1
15+
with:
16+
token: ${{ secrets.GH_PAT }}
17+
continue-on-error: true
18+
command: preview
19+
reaction: "true"
20+
reaction-type: rocket
21+
allow-edits: true
22+
permission-level: admin
23+
1424
- name: 🏗 Setup repo
1525
uses: actions/checkout@v4
1626
with:
@@ -104,7 +114,7 @@ jobs:
104114
105115
---
106116
107-
🎩 *Made by [Torii Studio](https://torii.studio)*
117+
🎩 *Adapted from the Workflow by [Torii Studio](https://torii.studio/guides/expo-qr-previews)*
108118
`;
109119
110120
// Fetch existing comments

0 commit comments

Comments
 (0)