-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (49 loc) · 1.35 KB
/
actions.yaml
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
43
44
45
46
47
48
49
50
51
name: Actions Workflow
on:
# https://api.github.com/repos/indy-jonesy/github-actions-test/dispatches
# repository_dispatch:
# types:
# - builder
# schedule:
# - cron: "*/5 * * * *"
# - cron: "*/6 * * * *"
push:
branches:
- master
- 'feature/*' # matches anything with a prefix of feature
- '!feature/featC' # ignores the specific branch
tags:
- v1
paths:
- '**.js'
# only can use one or the other
# tags-ignore:
# - you get the idea
# branches-ignore:
# - load_test
# pull_request:
# types: [closed, assigned, opened, reopened]
jobs:
run-github-actions:
runs-on: ubuntu-latest
steps:
- name: payload
run: echo ${{ github.event.client_payload.env }}
- name: Checkout
uses: actions/checkout@v3
- name: List Files
run: |
pwd
ls -a
# echo "${{ github.token }}"
- name: Simple JS Action
id: greet
# better to choose a specific version or commit will ensure consistency
uses: actions/hello-world-javascript-action@e76147da8e5c81eaf017dede5645551d4b94427b
with:
who-to-greet: Johnny
- name: Save state
run: |
echo "{time}=${{ steps.greet.outputs.time }}" >> $GITHUB_ENV
- name: Log Greeting Time
run: echo ${{ env.time }}