-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (37 loc) · 1.16 KB
/
example-template.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
name: 'Example summaries'
on:
push:
jobs:
with-variables:
name: 'Template with dynamic data'
runs-on: ubuntu-22.04
steps:
- name: 'Template without variables'
uses: WcAServices/markdown-template-action@main
with:
# language="bashpro shell script"
variables: >-
GREETING="World"
COMMIT_SHA="${{ github.sha }}"
SHORT_SHA=${COMMIT_SHA:0:7}
# language="markdown"
template: |
# Hello, $GREETING
> ### You're on commit [`$SHORT_SHA`]($COMMIT_SHA)
##### Standard GitHub variables should work too:
```yaml
Github Ref: $GITHUB_REF
Commit author: $GITHUB_ACTOR
Job: $GITHUB_JOB
```
without-variables:
name: 'Static template'
runs-on: ubuntu-22.04
steps:
- name: 'Template without variables'
uses: WcAServices/markdown-template-action@main
with:
# language="markdown"
template: |
# Without variables
> Just a standard Markdown template with nothing fancy going on.