Skip to content

Commit 321db43

Browse files
authored
fix-31
1 parent 7686c98 commit 321db43

2 files changed

Lines changed: 13 additions & 10 deletions

File tree

.github/actions/sync/action.yml

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,22 +19,15 @@ runs:
1919
using: "composite"
2020
steps:
2121
- name: Checkout PR code
22-
if: ${{ inputs.event_name == 'pull_request_target' && inputs.pr_ref != '' && inputs.pr_repo != '' }}
22+
if: ${{ inputs.event_name == 'pull_request' && inputs.pr_ref != '' && inputs.pr_repo != '' }}
2323
uses: actions/checkout@v4
2424
with:
2525
fetch-depth: 0
2626
ref: ${{ inputs.pr_ref }}
2727
repository: ${{ inputs.pr_repo }}
2828

29-
- name: Checkout branch/ref for push/workflow_call
30-
if: ${{ (inputs.event_name == 'push' || inputs.event_name == 'workflow_call') && inputs.base_ref != '' }}
31-
uses: actions/checkout@v4
32-
with:
33-
fetch-depth: 0
34-
ref: ${{ inputs.base_ref }}
35-
36-
- name: Checkout workflow_dispatch ref
37-
if: ${{ inputs.event_name == 'workflow_dispatch' && inputs.base_ref != '' }}
29+
- name: Checkout branch/ref for push, workflow_call, workflow_dispatch
30+
if: ${{ (inputs.event_name == 'push' || inputs.event_name == 'workflow_call' || inputs.event_name == 'workflow_dispatch') && inputs.base_ref != '' }}
3831
uses: actions/checkout@v4
3932
with:
4033
fetch-depth: 0

.github/workflows/loading.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
name: _loading
2+
description: Load required parameters for the subsequent jobs
3+
4+
on:
5+
workflow_call:
6+
outputs:
7+
build_matrix:
8+
description: Build matrix
9+
value: ${{ jobs.loading.outputs.build_matrix }}
10+
111
jobs:
212
loading:
313
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)