diff --git a/.github/workflows/github-comment-test.yaml b/.github/workflows/github-comment-test.yaml index 786d0d7..33ec024 100644 --- a/.github/workflows/github-comment-test.yaml +++ b/.github/workflows/github-comment-test.yaml @@ -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 diff --git a/github-comment.yaml b/github-comment.yaml index b6a8812..afda3db 100644 --- a/github-comment.yaml +++ b/github-comment.yaml @@ -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}} +# ```