From af03fc819c6102c3695f9bd2bdd28201689a2dcf Mon Sep 17 00:00:00 2001 From: probonopd Date: Sun, 5 Jun 2022 15:11:32 +0200 Subject: [PATCH] Update test.yml --- .github/workflows/test.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 38f5165d..cd632020 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -76,20 +76,18 @@ jobs: grep -r "version \`GLIBC_.*' not found" && MESSAGE="This was compiled on a too new system and hence cannot run on all still-supported versions of Ubuntu." && exit 1 echo "${MESSAGE}" SCREENSHOT_URL=$(cat log.txt | grep -o -e "https://transfer.sh/.*/screenshot.png") - # echo "{SCREENSHOT_URL}=${SCREENSHOT_URL}" >> $GITHUB_ENV # Does not error echo "SCREENSHOT_URL="$SCREENSHOT_URL >> $GITHUB_ENV echo "SCREENSHOT_URL: ${SCREENSHOT_URL}" - name: Post test result to PR - # Fails due to missing permissions, https://github.com/actions/first-interaction/issues/10 + # Needs permissions, https://github.com/actions/first-interaction/issues/10 if: github.event_name == 'pull_request' uses: actions/github-script@v4 with: script: | - # echo "env.SCREENSHOT_URL: ${{ env.SCREENSHOT_URL }}" - # echo "SCREENSHOT_URL: ${SCREENSHOT_URL}" + echo "env.SCREENSHOT_URL: ${{ env.SCREENSHOT_URL }}" await github.issues.createComment({ issue_number: context.issue.number, owner: context.repo.owner, repo: context.repo.repo, - body: "" + body: "Screenshot was taken" })