Skip to content

Commit 0aae9ef

Browse files
committed
feat: update cache action to v4
1 parent aa0f30a commit 0aae9ef

File tree

1 file changed

+30
-25
lines changed

1 file changed

+30
-25
lines changed

.github/workflows/reusable.yaml

+30-25
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ env:
66
on:
77
workflow_call:
88
inputs:
9+
runner-type:
10+
description: "Runner type"
11+
default: "ubuntu-22.04"
12+
required: false
13+
type: string
914
compose-file-cache-key:
1015
description: "GHA Cache Key for Docker Compose file ready to deploy"
1116
required: true
@@ -30,32 +35,32 @@ on:
3035
type: string
3136
pr-number:
3237
description: "GitHub Pull Request Number"
33-
default: ''
38+
default: ""
3439
required: false
3540
type: string
3641
git-ref:
3742
description: "Branch or other git reference to checkout"
38-
default: ''
43+
default: ""
3944
required: false
4045
type: string
4146
healthcheck-url-path:
4247
description: "URL Path to the Uffizzi Preview URL where healthcheck would be performed. The URL Path has to start with a '/'."
43-
default: ''
48+
default: ""
4449
required: false
4550
type: string
4651
description:
4752
description: "Text string added to comment on pull request issue"
48-
default: 'What is Uffizzi? [Learn more](https://www.uffizzi.com)!'
53+
default: "What is Uffizzi? [Learn more](https://www.uffizzi.com)!"
4954
required: false
5055
type: string
5156
environment:
52-
description: 'Custom environment for the deployed preview'
53-
default: 'uffizzi'
57+
description: "Custom environment for the deployed preview"
58+
default: "uffizzi"
5459
required: false
5560
type: string
5661
secrets:
5762
access-token:
58-
description: 'Github pipeline token'
63+
description: "Github pipeline token"
5964
required: false
6065
password:
6166
description: "Uffizzi password for login"
@@ -70,42 +75,42 @@ on:
7075
description: "GitHub personal access token with access to container registry"
7176
required: false
7277
dockerhub-username:
73-
description: 'DockerHub username'
78+
description: "DockerHub username"
7479
required: false
7580
dockerhub-password:
76-
description: 'DockerHub password'
81+
description: "DockerHub password"
7782
required: false
7883
acr-username:
79-
description: 'Azure username'
84+
description: "Azure username"
8085
required: false
8186
acr-password:
82-
description: 'Azure password'
87+
description: "Azure password"
8388
required: false
8489
acr-registry-url:
85-
description: 'Azure registry url'
90+
description: "Azure registry url"
8691
required: false
8792
aws-access-key-id:
88-
description: 'Amazon Web Services access key id'
93+
description: "Amazon Web Services access key id"
8994
required: false
9095
aws-secret-access-key:
91-
description: 'Amazon Web Services secret access key'
96+
description: "Amazon Web Services secret access key"
9297
required: false
9398
aws-registry-url:
94-
description: 'Amazon Web Services registry url'
99+
description: "Amazon Web Services registry url"
95100
required: false
96101
gcloud-service-key:
97-
description: 'Google Cloud service key'
102+
description: "Google Cloud service key"
98103
required: false
99104
docker-registry-username:
100-
description: 'Custom docker registry username'
105+
description: "Custom docker registry username"
101106
required: false
102107
docker-registry-password:
103-
description: 'Custom docker registry password'
108+
description: "Custom docker registry password"
104109
required: false
105110
docker-registry-url:
106-
description: 'Custom docker registry url'
111+
description: "Custom docker registry url"
107112
required: false
108-
113+
109114
outputs:
110115
url:
111116
description: "URL to Uffizzi Preview Environment"
@@ -114,7 +119,7 @@ on:
114119
description: "Uffizzi Preview Deployment ID"
115120
value: ${{ jobs.uffizzi-preview.outputs.id }}
116121
containers_uri:
117-
description: 'URL to Uffizzi Deployment Details'
122+
description: "URL to Uffizzi Deployment Details"
118123
value: ${{ jobs.uffizzi-preview.outputs.containers_uri }}
119124
expiration_interval:
120125
description: "Uffizzi Preview Expiration Interval in Seconds"
@@ -134,7 +139,7 @@ permissions:
134139
jobs:
135140
uffizzi-preview:
136141
name: "Create, Update, or Delete Preview on Uffizzi"
137-
runs-on: ubuntu-22.04
142+
runs-on: ${{ inputs.runner-type }}
138143
environment:
139144
name: ${{ inputs.environment }}
140145
url: "${{ steps.outputs.outputs.url }}"
@@ -195,8 +200,8 @@ jobs:
195200
id: find-comment
196201
with:
197202
issue-number: ${{ env.PR_NUMBER }}
198-
comment-author: 'github-actions[bot]'
199-
body-includes: '${{ env.EXPECTED_URL }}'
203+
comment-author: "github-actions[bot]"
204+
body-includes: "${{ env.EXPECTED_URL }}"
200205
direction: last
201206

202207
- name: Determine Operation
@@ -265,7 +270,7 @@ jobs:
265270
- name: Fetch cached Compose File
266271
id: cache
267272
if: ${{ contains(fromJSON('["create", "update"]'), env.UFFIZZI_ACTION) }}
268-
uses: actions/cache@v3
273+
uses: actions/cache@v4
269274
with:
270275
path: ${{ inputs.compose-file-cache-path }}
271276
key: ${{ inputs.compose-file-cache-key }}

0 commit comments

Comments
 (0)