Workflow fix (#1311)

* conditional step

* conditional step
This commit is contained in:
René Zubcevic 2022-07-25 09:55:24 +02:00 committed by GitHub
parent 242fdf39a1
commit 71afc6b6f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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'