Skip to content
This repository was archived by the owner on Mar 20, 2025. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 27 additions & 26 deletions .github/github-comment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,29 +2,30 @@
exec:
default:
- when: true
template: |
{{template "status" .}} {{template "link" .}}

exit code: {{.ExitCode}}

実行されたコマンド

```
$ {{.Command}}
```

<details>

Output

```
{{.CombinedOutput | AvoidHTMLEscape}}
```

StdErrOut

```
{{.Stderr | AvoidHTMLEscape}}
```

</details>
template: Hello
# template: |
# {{template "status" .}} {{template "link" .}}
#
# exit code: {{.ExitCode}}
#
# 実行されたコマンド
#
# ```
# $ {{.Command}}
# ```
#
# <details>
#
# Output
#
# ```
# {{.CombinedOutput | AvoidHTMLEscape}}
# ```
#
# StdErrOut
#
# ```
# {{.Stderr | AvoidHTMLEscape}}
# ```
#
# </details>
5 changes: 5 additions & 0 deletions .github/workflows/keep-latest-submodule.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,13 @@ jobs:
- name: submodule が古いので PR を作成
if: failure()
run: |
TEMP_DIR="$(mktemp)"
cp .github/github-comment.yaml "${TEMP_DIR}/"
cp scripts/create-pr-for-submodule-updates.sh "${TEMP_DIR}/"
git fetch --all
git switch main
cp "${TEMP_DIR}/github-comment.yaml" .github/github-comment.yaml
cp "${TEMP_DIR}/create-pr-for-submodule-updates.sh" scripts/create-pr-for-submodule-updates.sh
github-comment exec --config .github/github-comment.yaml -- make git.create-pr-for-submodule-updates
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}