Skip to content

Commit 7b7a7da

Browse files
committed
ci: decouple pr and raa with disbatch events
1 parent c3cb5ff commit 7b7a7da

2 files changed

Lines changed: 49 additions & 34 deletions

File tree

.github/workflows/pr-close.yml

Lines changed: 0 additions & 34 deletions
This file was deleted.

.github/workflows/raa.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: Review App & Artifacts
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
command:
7+
description: run or rm
8+
type: choice
9+
options:
10+
- run
11+
- rm
12+
required: true
13+
pr-number:
14+
description: PR number
15+
type: string
16+
required: true
17+
18+
env:
19+
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
20+
21+
concurrency:
22+
group: raa-${{ inputs.pr-number }}
23+
cancel-in-progress: true
24+
25+
jobs:
26+
raa:
27+
name: RAA ${{ inputs.command }} PR #${{ inputs.pr-number }}
28+
runs-on: ubuntu-latest
29+
timeout-minutes: 15
30+
permissions:
31+
deployments: write
32+
steps:
33+
- uses: actions/checkout@v4
34+
with:
35+
fetch-depth: 0
36+
- uses: ./.github/actions/setup
37+
38+
- id: raa
39+
uses: ./.github/actions/moon-raa
40+
with:
41+
command: ${{ inputs.command }}
42+
pr-number: ${{ inputs.pr-number }}
43+
github-token: ${{ secrets.GITHUB_TOKEN }}
44+
45+
- name: Summary
46+
if: always()
47+
run: echo "$SUMMARY" >> "$GITHUB_STEP_SUMMARY"
48+
env:
49+
SUMMARY: ${{ steps.raa.outputs.summary }}

0 commit comments

Comments
 (0)