Update test.yml

This commit is contained in:
probonopd authored and GitHub committed 2022-06-05 15:11:32 +02:00
1 parent a440e40da4
commit af03fc819c
1 file changed
+3 -5
+3 -5
View File
@@ -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: "<img src=\"${{ env.SCREENSHOT_URL }}\">"
body: "Screenshot was taken"
})