Skip to content

Commit d93ca8e

Browse files
committed
Close existing comments
1 parent 47d4c57 commit d93ca8e

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/validate-pr-metadata.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ jobs:
5151
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5252
ISSUE_URL: ${{ github.event.pull_request.html_url }}
5353
run: |
54+
gh release -R CodeYourFuture/trainee-tracker view --json assets -q ".assets[] | select(.name | startswith(\"pr-metadata-validator-musl-\")).url" | xargs curl --fail -L -o /tmp/pr-metadata-validator && chmod 0755 /tmp/pr-metadata-validator
55+
/tmp/pr-metadata-validator --only-close-existing-comments-with-tag="sdc-test-results" "${ISSUE_URL}"
5456
gh pr comment $ISSUE_URL --body-file testoutput.txt
5557
- name: add appropriate labels
5658
if: steps.test-individual-shell-tools.outputs.complete == 'y' || steps.test-jq.outputs.complete == 'y' || steps.test-shell-pipelines.outputs.complete == 'y' || steps.test-implement-cowsay.outputs.complete == 'y'

test-sdc.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# You can run this file using ./test-sdc.sh task-directory-name to check your output
66

77
echo "<!--CYFTT tag: sdc-test-results-->" > testoutput.txt
8-
echo "Results of test" >> testoutput.txt
8+
echo "Results of test:" >> testoutput.txt
99

1010
if [[ "$1" == "individual-shell-tools" ]]; then
1111
cd individual-shell-tools

0 commit comments

Comments
 (0)