From 71afc6b6f3f27f9a1558cf3b586b1386bce2569d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20Zubcevic?= Date: Mon, 25 Jul 2022 09:55:24 +0200 Subject: [PATCH] Workflow fix (#1311) * conditional step * conditional step --- .github/workflows/test.yml | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c9430479c..8a5859d11 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -8,8 +8,8 @@ on: - 'LICENSE' - 'docs/**' push: - tags-ignore: - - '*' +# tags-ignore: +# - '*' paths-ignore: - '.txt' - '*.MD' @@ -59,8 +59,10 @@ jobs: resource: http://127.0.0.1:8080/WebGoat - name: Test with Robotframework run: python3 -m robot --variable HEADLESS:"1" --outputdir robotreport robot/goat.robot - #- name: Send report to commit - # uses: joonvena/robotframework-reporter-action@v2.1 - # with: - # gh_access_token: ${{ secrets.GITHUB_TOKEN }} - # report_path: 'robotreport' + # send report to forks only due to limits on permission tokens + - name: Send report to commit + if: github.repository != 'WebGoat/WebGoat' && github.event_name == 'push' + uses: joonvena/robotframework-reporter-action@v2.1 + with: + gh_access_token: ${{ secrets.GITHUB_TOKEN }} + report_path: 'robotreport'