-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (52 loc) · 1.67 KB
/
pull_request.yml
File metadata and controls
59 lines (52 loc) · 1.67 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: Process new plugins
on: [pull_request]
jobs:
process:
name: Process new plugins
runs-on: ubuntu-latest
steps:
- name: Checkout plugins
uses: actions/checkout@v3
- name: Checkout dist
uses: actions/checkout@v3
with:
repository: placecharity/dist
path: dist
ref: main
token: ${{ secrets.DIST_TOKEN }}
persist-credentials: true
- name: Checkout runner
uses: actions/checkout@v3
with:
repository: placecharity/framework-plugins-runner
path: runner
ref: main
- uses: oven-sh/setup-bun@v2
- uses: actions/setup-node@v4
with:
node-version: 22
registry-url: https://registry.npmjs.org
- name: Build runner Docker image
run: |
cd ${{ github.workspace }}/runner
docker build -t placecharity/framework-plugins-runner:latest .
cd ${{ github.workspace }}
- name: Run runner
env:
PLUGIN_MANIFESTS_PATH: ${{ github.workspace }}/plugins
PLUGIN_DIST_PATH: ${{ github.workspace }}/dist
PLUGIN_RUNNER_PATH: ${{ github.workspace }}/runner
PLUGIN_WORK_PATH: ${{ github.workspace }}/work
run: |
cd $PLUGIN_RUNNER_PATH
bun run runner
cd ${{ github.workspace }}
- name: Upload changed plugins
uses: actions/upload-artifact@v4
with:
name: plugins
path: ${{ github.workspace }}/work/changed/*
- name: Write state
continue-on-error: true
run: cat ${{ github.workspace }}/work/state.md >> $GITHUB_STEP_SUMMARY
shell: bash