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' - 'LICENSE'
- 'docs/**' - 'docs/**'
push: push:
tags-ignore: # tags-ignore:
- '*' # - '*'
paths-ignore: paths-ignore:
- '.txt' - '.txt'
- '*.MD' - '*.MD'
@ -59,8 +59,10 @@ jobs:
resource: http://127.0.0.1:8080/WebGoat resource: http://127.0.0.1:8080/WebGoat
- name: Test with Robotframework - name: Test with Robotframework
run: python3 -m robot --variable HEADLESS:"1" --outputdir robotreport robot/goat.robot run: python3 -m robot --variable HEADLESS:"1" --outputdir robotreport robot/goat.robot
#- name: Send report to commit # send report to forks only due to limits on permission tokens
# uses: joonvena/robotframework-reporter-action@v2.1 - name: Send report to commit
# with: if: github.repository != 'WebGoat/WebGoat' && github.event_name == 'push'
# gh_access_token: ${{ secrets.GITHUB_TOKEN }} uses: joonvena/robotframework-reporter-action@v2.1
# report_path: 'robotreport' with:
gh_access_token: ${{ secrets.GITHUB_TOKEN }}
report_path: 'robotreport'