Skip to content

Commit

Permalink
test7
Browse files Browse the repository at this point in the history
  • Loading branch information
RyosukeDTomita committed Jun 16, 2024
1 parent 41549a9 commit 6be3c06
Show file tree
Hide file tree
Showing 2 changed files with 63 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/github-comment-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ jobs:

- name: export GITHUB_TOKEN to use github-comment
run: export GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }}
- name: exit=0 then no comment
run: github-comment -- exec ls
- name: exit!=0 then comment
run: github-comment -- exec ls /not-exist
- run: github-comment post -k hello
# - name: exit=0 then no comment
# run: github-comment -- exec ls
# - name: exit!=0 then comment
# run: github-comment -- e
58 changes: 58 additions & 0 deletions github-comment.yaml
Original file line number Diff line number Diff line change
@@ -1 +1,59 @@
---
skip_no_token: true
base:
org: RyosukeDTomita
repo: devsecops-demo-aws-ecs
# vars:
# foo: bar
# zoo:
# foo: hello
# templates:
# header: "# {{.Org}}/{{.Repo}}"
post:
# default:
# template: |
# {{template "header" .}}
# {{.Vars.foo}} {{.Vars.zoo.foo}}
# {{.Org}} {{.Repo}} {{.PRNumber}} {{.SHA1}} {{.TemplateKey}}
hello:
template:
hello
# exec:
# hello:
# - when: true
# template: |
# {{template "header" .}}
# {{.Vars.foo}} {{.Vars.zoo.foo}}
# {{.Org}} {{.Repo}} {{.PRNumber}} {{.SHA1}} {{.TemplateKey}}
# exit code: {{.ExitCode}}
#
# ```console
# $ {{.Command}}
# ```
#
# Stdout:
#
# ```
# {{.Stdout}}
# ```
#
# Stderr:
#
# ```
# {{.Stderr}}
# ```
#
# CombinedOutput:
#
# ```
# {{.CombinedOutput}}
# ```
# template_for_too_long: |
# {{template "header" .}}
# {{.Vars.foo}} {{.Vars.zoo.foo}}
# {{.Org}} {{.Repo}} {{.PRNumber}} {{.SHA1}} {{.TemplateKey}}
# exit code: {{.ExitCode}}
#
# ```console
# $ {{.Command}}
# ```

0 comments on commit 6be3c06

Please sign in to comment.