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 00deefd

Browse files
committed
try a separate workflow
1 parent be2c538 commit 00deefd

File tree

2 files changed

+21
-9
lines changed

2 files changed

+21
-9
lines changed

.github/workflows/auto-ref.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: "Compute workflow, scenarios and weblogs to run"
2+
3+
on:
4+
workflow_call:
5+
outputs:
6+
ref:
7+
description: ""
8+
value: ${{ jobs.main.outputs.ref }}
9+
10+
jobs:
11+
main:
12+
runs-on: ubuntu-latest
13+
permissions:
14+
id-token: write # required to get an oidc token
15+
contents: read
16+
steps:
17+
- uses: ChristopherHX/oidc@73eee1ff03fdfce10eda179f617131532209edbd
18+
id: oidc
19+
- name: Compute ref
20+
run: ref=${{ steps.oidc.outputs.job_workflow_repo_ref }}" >> $GITHUB_OUTPUT

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

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -115,15 +115,7 @@ jobs:
115115
auto_ref:
116116
if: inputs.ref == 'auto'
117117
runs-on: ubuntu-latest
118-
permissions:
119-
id-token: write # required to get an oidc token
120-
contents: read
121-
steps:
122-
- uses: ChristopherHX/oidc@73eee1ff03fdfce10eda179f617131532209edbd
123-
id: oidc
124-
- name: Compute ref
125-
id: compute_ref
126-
run: ref=${{ steps.oidc.outputs.job_workflow_repo_ref }}" >> $GITHUB_OUTPUT
118+
uses: ./.github/workflows/auto-ref.yml
127119

128120
main:
129121
if: always() && !failure() && !cancelled()

0 commit comments

Comments
 (0)