Skip to content

Commit 6708652

Browse files
authored
chore(ci): bump runs-on/action, add metrics (#21655)
1 parent d0dfe0c commit 6708652

8 files changed

Lines changed: 33 additions & 32 deletions

.github/workflows/ci-core.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -128,9 +128,9 @@ jobs:
128128
modules: ${{ fromJson(needs.filter.outputs.affected-modules) }}
129129
steps:
130130
- name: Enable S3 Cache for Self-Hosted Runners
131-
# these env vars are set (and exposed) when it is a self-hosted runner with extras=s3-cache
132-
if: ${{ env.RUNS_ON_INSTANCE_ID != '' && env.ACTIONS_CACHE_URL != '' }}
133-
uses: runs-on/action@66d4449b717b5462159659523d1241051ff470b9 # v1
131+
uses: runs-on/action@742bf56072eb4845a0f94b3394673e4903c90ff0 # v2.1.0
132+
with:
133+
metrics: cpu,network,memory,disk
134134

135135
- name: Checkout
136136
uses: actions/checkout@v4
@@ -247,9 +247,9 @@ jobs:
247247
actions: read
248248
steps:
249249
- name: Enable S3 Cache for Self-Hosted Runners
250-
# these env vars are set (and exposed) when it is a self-hosted runner with extras=s3-cache
251-
if: ${{ env.RUNS_ON_INSTANCE_ID != '' && env.ACTIONS_CACHE_URL != '' }}
252-
uses: runs-on/action@66d4449b717b5462159659523d1241051ff470b9 # v1
250+
uses: runs-on/action@742bf56072eb4845a0f94b3394673e4903c90ff0 # v2.1.0
251+
with:
252+
metrics: cpu,network,memory,disk
253253

254254
- name: Checkout the repo
255255
if: ${{ matrix.type.should-run == 'true' }}

.github/workflows/codeql.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ jobs:
4343
build-mode: none
4444
steps:
4545
- name: Enable S3 Cache for Self-Hosted Runners
46-
# these env vars are set (and exposed) when it is a self-hosted runner with extras=s3-cache
47-
if: ${{ env.RUNS_ON_INSTANCE_ID != '' && env.ACTIONS_CACHE_URL != '' }}
48-
uses: runs-on/action@66d4449b717b5462159659523d1241051ff470b9 # v1
46+
uses: runs-on/action@742bf56072eb4845a0f94b3394673e4903c90ff0 # v2.1.0
47+
with:
48+
metrics: cpu,network,memory,disk
4949

5050
- name: Checkout repository
5151
uses: actions/checkout@v4

.github/workflows/cre-local-env-tests.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,9 @@ jobs:
7777
ref: ${{ github.event_name == 'pull_request' && github.sha || inputs.chainlink_version }}
7878

7979
- name: Enable S3 Cache for Self-Hosted Runners
80-
# these env vars are set (and exposed) when it is a self-hosted runner with extras=s3-cache
81-
if: ${{ env.RUNS_ON_INSTANCE_ID != '' && env.ACTIONS_CACHE_URL != '' }}
82-
uses: runs-on/action@66d4449b717b5462159659523d1241051ff470b9 # v1
80+
uses: runs-on/action@742bf56072eb4845a0f94b3394673e4903c90ff0 # v2.1.0
81+
with:
82+
metrics: cpu,network,memory,disk
8383

8484
- name: Set up Go
8585
id: setup-go

.github/workflows/cre-regression-system-tests.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@ jobs:
4949
persist-credentials: false
5050

5151
- name: Enable S3 Cache for Self-Hosted Runners
52-
# these env vars are set (and exposed) when it is a self-hosted runner with extras=s3-cache
53-
if: ${{ env.RUNS_ON_INSTANCE_ID != '' && env.ACTIONS_CACHE_URL != '' }}
54-
uses: runs-on/action@66d4449b717b5462159659523d1241051ff470b9 # v1
52+
uses: runs-on/action@742bf56072eb4845a0f94b3394673e4903c90ff0 # v2.1.0
53+
with:
54+
metrics: cpu,network,memory,disk
5555

5656
- name: Set up Go
5757
id: setup-go
@@ -110,9 +110,9 @@ jobs:
110110

111111
steps:
112112
- name: Enable S3 Cache for Self-Hosted Runners
113-
# these env vars are set (and exposed) when it is a self-hosted runner with extras=s3-cache
114-
if: ${{ env.RUNS_ON_INSTANCE_ID != '' && env.ACTIONS_CACHE_URL != '' }}
115-
uses: runs-on/action@66d4449b717b5462159659523d1241051ff470b9 # v1
113+
uses: runs-on/action@742bf56072eb4845a0f94b3394673e4903c90ff0 # v2.1.0
114+
with:
115+
metrics: cpu,network,memory,disk
116116

117117
- name: Checkout
118118
uses: actions/checkout@v4

.github/workflows/cre-soak-memory-leak.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,9 @@ jobs:
4343

4444
steps:
4545
- name: Enable S3 Cache for Self-Hosted Runners
46-
if: ${{ env.RUNS_ON_INSTANCE_ID != '' && env.ACTIONS_CACHE_URL != '' }}
47-
uses: runs-on/action@66d4449b717b5462159659523d1241051ff470b9 # v1
46+
uses: runs-on/action@742bf56072eb4845a0f94b3394673e4903c90ff0 # v2.1.0
47+
with:
48+
metrics: cpu,network,memory,disk
4849

4950
- name: Checkout
5051
uses: actions/checkout@v4

.github/workflows/cre-system-tests.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@ jobs:
4949
persist-credentials: false
5050

5151
- name: Enable S3 Cache for Self-Hosted Runners
52-
# these env vars are set (and exposed) when it is a self-hosted runner with extras=s3-cache
53-
if: ${{ env.RUNS_ON_INSTANCE_ID != '' && env.ACTIONS_CACHE_URL != '' }}
54-
uses: runs-on/action@66d4449b717b5462159659523d1241051ff470b9 # v1
52+
uses: runs-on/action@742bf56072eb4845a0f94b3394673e4903c90ff0 # v2.1.0
53+
with:
54+
metrics: cpu,network,memory,disk
5555

5656
- name: Set up Go
5757
id: setup-go
@@ -157,9 +157,9 @@ jobs:
157157

158158
steps:
159159
- name: Enable S3 Cache for Self-Hosted Runners
160-
# these env vars are set (and exposed) when it is a self-hosted runner with extras=s3-cache
161-
if: ${{ env.RUNS_ON_INSTANCE_ID != '' && env.ACTIONS_CACHE_URL != '' }}
162-
uses: runs-on/action@66d4449b717b5462159659523d1241051ff470b9 # v1
160+
uses: runs-on/action@742bf56072eb4845a0f94b3394673e4903c90ff0 # v2.1.0
161+
with:
162+
metrics: cpu,network,memory,disk
163163

164164
- name: Checkout
165165
uses: actions/checkout@v4

.github/workflows/go-mod-cache.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,9 @@ jobs:
5353
pull-requests: read
5454
steps:
5555
- name: Enable S3 Cache for Self-Hosted Runners
56-
# these env vars are set (and exposed) when it is a self-hosted runner with extras=s3-cache
57-
if: ${{ env.RUNS_ON_INSTANCE_ID != '' && env.ACTIONS_CACHE_URL != '' }}
58-
uses: runs-on/action@66d4449b717b5462159659523d1241051ff470b9 # v1
56+
uses: runs-on/action@742bf56072eb4845a0f94b3394673e4903c90ff0 # v2.1.0
57+
with:
58+
metrics: cpu,network,memory,disk
5959

6060
- name: Checkout the repo
6161
uses: actions/checkout@v4

.github/workflows/integration-tests.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -243,9 +243,9 @@ jobs:
243243
}}
244244
steps:
245245
- name: Enable S3 Cache for Self-Hosted Runners
246-
# these env vars are set (and exposed) when it is a self-hosted runner with extras=s3-cache
247-
if: ${{ env.RUNS_ON_INSTANCE_ID != '' && env.ACTIONS_CACHE_URL != '' }}
248-
uses: runs-on/action@66d4449b717b5462159659523d1241051ff470b9 # v1
246+
uses: runs-on/action@742bf56072eb4845a0f94b3394673e4903c90ff0 # v2.1.0
247+
with:
248+
metrics: cpu,network,memory,disk
249249

250250
- name: Check if image exists in ECR
251251
id: check-image-exists

0 commit comments

Comments
 (0)