fix(build): only upload PR info when the event is a pull request
@@ -87,10 +87,10 @@ jobs:
cp -R target/japicmp/default-cli.xml ./pr/japicmp/default-cli.xml
cp target/jacoco-report/cobertura.xml ./pr/jacoco-report/cobertura.xml
cp target/jacoco-report/cobertura-it.xml ./pr/jacoco-report/cobertura-it.xml
- if: matrix.os == 'ubuntu-latest'
+ if: github.event_name == 'pull_request' && matrix.os == 'ubuntu-latest'
- name: Upload files
uses: actions/upload-artifact@v2
with:
name: pr
path: pr/
- if: matrix.os == 'ubuntu-latest'
+ if: github.event_name == 'pull_request' && matrix.os == 'ubuntu-latest'
