-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (38 loc) · 951 Bytes
/
ci.yml
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
42
name: Node CI
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
inputs:
name:
description: 'Person to greet'
required: true
default: 'Mona the Octocat'
home:
description: 'location'
required: false
default: 'The Octoverse'
env:
name: 'default'
home: 'default'
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- run: |
echo "yes" \
"no" \
"maybe"
- name: set env vars if workflow
if: ${{ github.event.inputs.name }}
run: |
echo "name=${{ github.event.inputs.name }}" >> $GITHUB_ENV
echo "home=${{ github.event.inputs.home }}" >> $GITHUB_ENV
- run: |
echo $name
echo $home
- run: echo ${{ secrets.GITHUB_TOKEN }}