-
Notifications
You must be signed in to change notification settings - Fork 4
62 lines (57 loc) · 1.61 KB
/
report-pr.yml
File metadata and controls
62 lines (57 loc) · 1.61 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
60
61
62
name: Example report - PR
run-name: ${{ inputs.pr }}
on:
workflow_dispatch:
inputs:
pr:
description: "PR to run"
required: true
type: string
jobs:
get-environment:
name: Get Environment
runs-on: ubuntu-latest
outputs:
gitref: ${{ steps.env.outputs.gitref }}
date: ${{ steps.env.outputs.date }}
steps:
- name: Checkout Bevy main branch
uses: actions/checkout@v6
with:
repository: "bevyengine/bevy"
- name: Switch to PR
run: |
git fetch origin pull/${{ inputs.pr }}/head:pr-${{ inputs.pr }}
git switch pr-${{ inputs.pr }}
- name: Get Environment
id: env
run: |
echo "gitref=`git rev-parse HEAD`" >> $GITHUB_OUTPUT
echo "date=`date +%Y%m%d%H%M`" >> $GITHUB_OUTPUT
native-run:
name: Native
needs: [get-environment]
uses: ./.github/workflows/workflow-native.yml
with:
gitref: ${{ needs.get-environment.outputs.gitref }}
branch: "PR-${{ inputs.pr }}"
repository: "bevyengine/bevy"
secrets: inherit
mobile-run:
name: Mobile
needs: [get-environment]
uses: ./.github/workflows/workflow-mobile.yml
with:
gitref: ${{ needs.get-environment.outputs.gitref }}
branch: "PR-${{ inputs.pr }}"
repository: "bevyengine/bevy"
secrets: inherit
wasm-run:
name: wasm
needs: [get-environment]
uses: ./.github/workflows/workflow-wasm.yml
with:
gitref: ${{ needs.get-environment.outputs.gitref }}
branch: "PR-${{ inputs.pr }}"
repository: "bevyengine/bevy"
secrets: inherit