WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit 161c169

Browse files
committed
use composite action instead
1 parent 9f56dd2 commit 161c169

File tree

2 files changed

+17
-3
lines changed

2 files changed

+17
-3
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Get_ref
2+
description: "Gets system tests ref"
3+
outputs:
4+
ref:
5+
description: "System tests ref"
6+
value: ${{ steps.extract.outputs.ref }}
7+
8+
runs:
9+
using: composite
10+
steps:
11+
- name: Extract ref
12+
id: extract
13+
shell: bash
14+
run: |
15+
echo "ref=${{ github.action_path }}" >> $GITHUB_OUTPUT
16+
echo "path=${{ github.action_ref }}" >> $GITHUB_OUTPUT

.github/workflows/compute-workflow-parameters.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ jobs:
102102
manual_ref:
103103
runs-on: ubuntu-latest
104104
steps:
105+
- uses: ./.github/actions/get_ref
105106
- run: |
106107
if [[ "${{ inputs.ref }}" != "" ]]; then
107108
echo "ref=${{ inputs.ref }}" >> $GITHUB_OUTPUT
@@ -111,9 +112,6 @@ jobs:
111112
echo "ref=main" >> $GITHUB_OUTPUT
112113
fi
113114
114-
auto_ref:
115-
uses: ./.github/workflows/auto-ref.yml
116-
117115
main:
118116
if: always() && !failure() && !cancelled()
119117
name: Get parameters

0 commit comments

Comments
 (0)