We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f357322 commit c0cd71bCopy full SHA for c0cd71b
_posts/2024-06-14-github-context.md
@@ -47,6 +47,8 @@ _Printing the GitHub context_
47
You can even use the contexts in expressions. For example, we can conditionally run a job based on the labels of an issue that triggered the workflow:
48
49
```yml
50
+name: Printing issue if 'new-repo' label is present
51
+
52
on:
53
issues:
54
types: [opened]
@@ -85,6 +87,12 @@ This can be super helpful for IssueOps and LabelOps scenarios!
85
87
You can do the same thing to print out the other contexts as well. Here's a full workflow example:
86
88
89
90
+name: Write Contexts to Log
91
92
+on:
93
+ push:
94
+ workflow_dispatch:
95
96
jobs:
97
write_contexts_to_log:
98
runs-on: ubuntu-latest
0 commit comments