Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit8505158

Browse files
committed
inline
1 parent98c6380 commit8505158

File tree

1 file changed

+7
-13
lines changed

1 file changed

+7
-13
lines changed

‎.github/workflows/traiage.yaml‎

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ jobs:
126126
BUCKET_PREFIX:"gs://coder-traiage-outputs/traiage"
127127
CONTEXT_KEY:${{ steps.extract-context.outputs.context_key }}
128128
GITHUB_TOKEN:${{ github.token }}
129+
GITHUB_REPOSITORY:${{ github.repository }}
129130
ISSUE_URL:${{ inputs.issue_url }}
130131
WORKSPACE_NAME:${{ steps.create-workspace.outputs.workspace_name }}
131132
run:|
@@ -149,19 +150,12 @@ jobs:
149150
echo ''
150151
} >> "${SUMMARY_FILE}"
151152
152-
./scripts/traiage.sh summary >> "${SUMMARY_FILE}"
153-
SUMMARY=$(<"${SUMMARY_FILE}")
154-
echo "${SUMMARY}" >> "${GITHUB_STEP_SUMMARY}"
155-
echo "summary=${SUMMARY}" >> "${GITHUB_OUTPUT}"
156-
157-
-name:Comment on Issue (only for coder/coder)
158-
id:comment-issue
159-
if:${{ startsWith(github.event.inputs.issue_url, format('https://github.com/{0}/', github.repository)) }}
160-
env:
161-
ISSUE_URL:${{ inputs.issue_url }}
162-
SUMMARY:${{ steps.generate-summary.outputs.summary }}
163-
run:|
164-
gh issue comment "${ISSUE_URL}" --body-file "${SUMMARY}" --create-if-none --edit-last
153+
if [[ "${ISSUE_URL}" == "${GITHUB_REPOSITORY}"* ]]; then
154+
gh issue comment "${ISSUE_URL}" --body-file "${SUMMARY_FILE}" --create-if-none --edit-last
155+
else
156+
echo "Skipping comment on other repo."
157+
fi
158+
cat < "${SUMMARY_FILE}" >> "${GITHUB_STEP_SUMMARY}"
165159
166160
-name:Cleanup workspace
167161
if:steps.create-workspace.outputs.workspace_name != '' && steps.create-archive.outputs.archive_url != ''

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp