Skip to content

Commit 3e22070

Browse files
authored
Create summary.yml
orient one
1 parent ee14319 commit 3e22070

File tree

1 file changed

+92
-0
lines changed

1 file changed

+92
-0
lines changed

.github/workflows/summary.yml

Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
name: Summarize new issues
2+
3+
on:
4+
issues:
5+
types: [opened]
6+
7+
jobs:
8+
summary:
9+
runs-on: ubuntu-latest
10+
permissions:
11+
issues: write
12+
models: read
13+
contents: read
14+
15+
steps:
16+
- name: Checkout repository
17+
uses: actions/checkout@v4
18+
19+
- name: Run AI inference
20+
id: inference
21+
uses: actions/ai-inference@v1
22+
with:
23+
prompt: |
24+
Summarize the following GitHub issue in one paragraph:
25+
Title: ${{ github.event.issue.title }}
26+
Body: ${{ github.event.issue.body }}
27+
28+
- name: Comment with AI summary
29+
run: |
30+
gh issue comment $ISSUE_NUMBER --body '${{ steps.inference.outputs.response }}'
31+
env:
32+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
33+
ISSUE_NUMBER: ${{ github.event.issue.number }}
34+
RESPONSE: ${{ steps.inference.outputs.response }} - name: Bytebase Create Plan From Release
35+
# You may pin to the exact commit or the version.
36+
# uses: bytebase/create-plan-from-release-action@1e3acace40fbf9cb25001e831ac7f4550a857299
37+
uses: bytebase/[email protected]
38+
with:
39+
# The bytebase URL.
40+
url:
41+
# The Bytebase access token.
42+
token:
43+
# The project on Bytebase. Format: projects/{project}
44+
project:
45+
# The release to create plan from. Format: projects/{project}/releases/{release}
46+
release:
47+
# The database group or databases to deploy. Either a comma separated list of the databases or a database group. Databases example: `instances/mysql1/databases/db1,instances/mysql1/databases/db2`. Database format: instances/{instance}/databases/{database} Database group example: `projects/exa/databaseGroups/mygroup` Database group format: projects/{project}/databaseGroups/{databaseGroup}
48+
49+
targets:
50+
# An enum to determine should we run plan checks and fail on warning or error. Valid values are `SKIP`, `FAIL_ON_WARNING`, `FAIL_ON_ERROR`
51+
52+
check-plan: # optional, default is SKIP
53+
- name: OpenShift Self Hosted Runner Installer
54+
# You may pin to the exact commit or the version.
55+
# uses: redhat-actions/openshift-actions-runner-installer@8b4d88c1808ced3a39fd0e43f9ce038163fad8a8
56+
uses: redhat-actions/openshift-actions-runner-installer@v1
57+
with:
58+
# GitHub Personal access token. The token must have the "repo" permission scope.
59+
For organization runners, the token must also have the "admin:org" scope.
60+
61+
github_pat:
62+
# Repository or organization for the self-hosted runner.
63+
For example, "redhat-actions/check-self-hosted-runner" for a repository, or "redhat-actions" for an organization.
64+
Defaults to the current repository.
65+
66+
runner_location: # optional
67+
# Container image to use for the runner.
68+
runner_image: # optional
69+
# Tag to use for the runner container image.
70+
runner_tag: # optional
71+
# Labels in the runners to check for.
72+
For multiple labels, separate by comma and an optional space. For example, "label1, label2".
73+
74+
runner_labels: # optional
75+
# Number of runner replicas to create.
76+
runner_replicas: # optional, default is 1
77+
# Optional namespace (aka project) to pass to all Helm or Kubernetes commands.
78+
79+
namespace: # optional
80+
# Uninstall any release that matches the `helm_release_name` and `namespace` before running `helm install`.
81+
If this is false, and the release exists, the action will fail when the `helm install` fails.
82+
83+
helm_uninstall_existing: # optional, default is true
84+
# The Helm Release name to give the new runner release. Defaults to the repository or org name plus "-runners".
85+
helm_release_name: # optional
86+
# Any other arguments to pass to the 'helm install' command.
87+
Separate arguments by newline. Do not use quotes - @actions/exec will do the quoting for you.
88+
89+
helm_extra_args: # optional
90+
# Version of our Helm Chart to install. Defaults to the latest.
91+
helm_chart_version: # optional
92+

0 commit comments

Comments
 (0)