You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+13-2Lines changed: 13 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -26,10 +26,21 @@ title: Someone just pushed
26
26
assignees: JasonEtco, matchai
27
27
labels: bug, enhancement
28
28
---
29
-
Someone just pushed, oh no! Here's who did it: {{ payload.sender.login }}
29
+
Someone just pushed, oh no! Here's who did it: {{ payload.sender.login }}.
30
30
```
31
31
32
-
You'll notice that the above example has some `{{ mustache }}` variables. Your issue templates have access to everything about the event that triggered the action. [Here is a list of all of the available template variables](https://github.com/JasonEtco/actions-toolkit#toolscontext).
32
+
You'll notice that the above example has some `{{ mustache }}` variables. Your issue templates have access to everything about the event that triggered the action. [Here is a list of all of the available template variables](https://github.com/JasonEtco/actions-toolkit#toolscontext). You can also use environment variables:
33
+
34
+
```yaml
35
+
- uses: JasonEtco/create-an-issue@v2
36
+
env:
37
+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
38
+
ADJECTIVE: great
39
+
```
40
+
41
+
```markdown
42
+
Environment variables are pretty {{ env.ADJECTIVE }}, right?
43
+
```
33
44
34
45
Note that you can only assign people matching given [conditions](https://help.github.com/en/github/managing-your-work-on-github/assigning-issues-and-pull-requests-to-other-github-users).
0 commit comments