Skip to content

Commit 82c061e

Browse files
committed
initial
0 parents  commit 82c061e

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/test.yaml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# envで定義された変数が使えるか確認する
2+
name: "TEST"
3+
run-name: "commit-ish: ${{ inputs.comit-ish }}, ref_name: ${{ github.ref_name }}, name: ${{ env.NAME }}, ${{ env.name}}"
4+
on:
5+
push:
6+
tags:
7+
- v*
8+
workflow_dispatch:
9+
inputs:
10+
commit-ish:
11+
type: string
12+
required: true
13+
14+
permissions:
15+
contents: read
16+
env:
17+
name: ${{ inputs.commit-ish || github.ref_name }}
18+
jobs:
19+
test:
20+
name: ${{ env.name }}
21+
runs-on: ubuntu-latest
22+
steps:
23+
- name: Checkout
24+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
25+
with:
26+
fetch-depth: 0
27+
28+
- run: |
29+
echo NAME $NAME
30+
echo name $name
31+
echo name ${{ env.name }}

0 commit comments

Comments
 (0)