From e153ed677c0ec2dbb5d7a46179dfb86e17e65672 Mon Sep 17 00:00:00 2001 From: probonopd Date: Sun, 5 Jun 2022 12:13:50 +0200 Subject: [PATCH] Try to use SCREENSHOT_URL --- .github/workflows/test.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e44460cf..ce984fed 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -26,6 +26,9 @@ jobs: test: runs-on: ubuntu-18.04 timeout-minutes: 5 + permissions: + contents: write + pull-requests: write steps: - uses: actions/checkout@v2 # https://github.com/actions/checkout#Fetch-all-history-for-all-tags-and-branches @@ -78,9 +81,11 @@ jobs: grep -r "Running as root without --no-sandbox is not supported" log.txt && MESSAGE="Pending #2563 (\`Running as root without --no-sandbox is not supported\`)." && exit 1 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}" + grep -r "https://transfer.sh/" log.txt + echo "SCREENSHOT_URL=$(grep -r "https://transfer.sh/" log.txt)" >> $GITHUB_ENV - name: Post test result to PR # Fails due to missing permissions, https://github.com/actions/first-interaction/issues/10 - if: 1 == 2 + if: 1 == 1 # if: github.event_name == 'pull_request' uses: actions/github-script@v4 with: @@ -89,5 +94,5 @@ jobs: issue_number: context.issue.number, owner: context.repo.owner, repo: context.repo.repo, - body: 'This comment is posted by the test' + body: "${SCREENSHOT_URL}" })