-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (39 loc) · 1.17 KB
/
reusable-workflow-example.yml
File metadata and controls
41 lines (39 loc) · 1.17 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
# このワークフローは他のワークフローから再利用されます。
name: Reusable workflow example
on:
workflow_call:
inputs:
config-path:
required: true
type: string
secrets:
token:
required: true
# Map the workflow outputs to job outputs
outputs:
firstword:
description: "The first output string"
value: ${{ jobs.example_job.outputs.output1 }}
secondword:
description: "The second output string"
value: ${{ jobs.example_job.outputs.output2 }}
jobs:
example_job:
name: 再利用のおためし
runs-on: ubuntu-latest
# Map the job outputs to step outputs
outputs:
output1: ${{ steps.step1.outputs.firstword }}
output2: ${{ steps.step2.outputs.secondword }}
steps:
- name: 🏃 Run actions/labeler
uses: actions/labeler@v6
with:
repo-token: ${{ secrets.token }}
configuration-path: ${{ inputs.config-path }}
- name: 🚀 output string1
id: step1
run: echo "firstword=こんにちは" >> $GITHUB_OUTPUT
- name: 🚀 output string2
id: step2
run: echo "secondword=世界" >> $GITHUB_OUTPUT