Skip to content

Commit 1727a95

Browse files
Added purpeteer cache
1 parent 4a0ce9d commit 1727a95

1 file changed

Lines changed: 13 additions & 3 deletions

File tree

.github/workflows/compare-vulnerabilities.yml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,9 @@ on:
1212
description: 'Head branch (e.g. TASK-1234)'
1313
required: true
1414
secrets:
15-
GITHUB_TOKEN:
16-
required: true
1715
SLACK_SECURITY_WEBHOOK_URL:
1816
required: false
17+
1918
workflow_dispatch:
2019
inputs:
2120
branch_a:
@@ -31,13 +30,17 @@ jobs:
3130
runs-on: ${{ vars.UBUNTU_VERSION }}
3231

3332
steps:
34-
# 1) Checkout head branch only
3533
- name: Checkout head branch
3634
uses: actions/checkout@v4
3735
with:
3836
ref: ${{ github.event.inputs.branch_b }}
3937
fetch-depth: 0
4038
fetch-tags: true
39+
- name: Restore Puppeteer cache
40+
uses: actions/cache@v4
41+
with:
42+
path: ~/.cache/puppeteer
43+
key: puppeteer-${{ runner.os }}
4144

4245
- name: Set up JDK 8
4346
uses: actions/setup-java@v4
@@ -53,6 +56,13 @@ jobs:
5356
head_ref: ${{ github.event.inputs.branch_b }} # pass 'TASK-7908'
5457
html_logo_url: "https://zettagenomics.com/wp-content/uploads/2022/10/Zetta-reversed-out-full-logo-dark-background.png"
5558

59+
- name: Save Puppeteer cache
60+
if: always()
61+
uses: actions/cache@v4
62+
with:
63+
path: ~/.cache/puppeteer
64+
key: puppeteer-${{ runner.os }}
65+
5666

5767
# build_command: ""
5868
# write_summary: "true"

0 commit comments

Comments
 (0)