Skip to content

Commit

Permalink
Upload artifacts only for PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
WunderBart committed Feb 21, 2023
1 parent 14a422f commit 39d517f
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/performance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,14 @@ jobs:
name: perf-test-results
path: ./__test-results/*.json

- name: Archive debug artifacts (screenshots, traces)
uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
if: github.event_name == 'pull_request'
with:
name: failures-artifacts
path: ./__test-results/artifacts
if-no-files-found: ignore

- name: Compare performance with current WordPress Core and previous Gutenberg versions
if: github.event_name == 'release'
env:
Expand All @@ -77,14 +85,6 @@ jobs:
WP_MAJOR="${WP_VERSION_ARRAY[0]}.${WP_VERSION_ARRAY[1]}"
./bin/plugin/cli.js perf $GITHUB_SHA debd225d007f4e441ceec80fbd6fa96653f94737 --tests-branch $GITHUB_SHA --wp-version "$WP_MAJOR"
- name: Archive debug artifacts (screenshots, traces)
uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
if: always()
with:
name: failures-artifacts
path: ./__test-results/artifacts
if-no-files-found: ignore

- uses: actions/github-script@98814c53be79b1d30f795b907e553d8679345975 # v6.4.0
if: github.event_name == 'push'
id: commit-timestamp
Expand Down

0 comments on commit 39d517f

Please sign in to comment.