Skip to content

Commit fe73a49

Browse files
committed
Set more sensible retention periods
1 parent 0dcd1df commit fe73a49

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

.github/workflows/activation.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ name: Acquire activation file
22

33
on:
44
workflow_dispatch:
5-
push:
65

76
jobs:
87
activation:
@@ -11,10 +10,11 @@ jobs:
1110
steps:
1211
# Request manual activation file
1312
- name: Unity - Request Activation File
14-
id: getManualLicenseFile
13+
id: requestActivationFile
1514
uses: game-ci/unity-request-activation-file@v2.0-alpha-1
1615
- name: Upload activation file
1716
uses: actions/upload-artifact@v2
1817
with:
19-
name: ${{ steps.getManualLicenseFile.outputs.filePath }}
20-
path: ${{ steps.getManualLicenseFile.outputs.filePath }}
18+
name: ${{ steps.requestActivationFile.outputs.filePath }}
19+
path: ${{ steps.requestActivationFile.outputs.filePath }}
20+
retention-days: 3

.github/workflows/cleanup.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: Delete old artifacts
22
on:
33
schedule:
4-
- cron: '30 10 * * *' # every day at 10:30
4+
- cron: '30 10 * * SUN' # every sunday at 10:30
55

66
jobs:
77
delete-artifacts:

.github/workflows/main.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,11 @@ jobs:
7777
unityVersion: ${{ matrix.unityVersion }}
7878
targetPlatform: ${{ matrix.targetPlatform }}
7979
customParameters: -profile SomeProfile -someBoolean -someValue exampleValue
80-
- uses: actions/upload-artifact@v1
80+
- uses: actions/upload-artifact@v2
8181
with:
8282
name: Build (${{ matrix.unityVersion }})
8383
path: build
84+
retention-days: 14
8485
k8sBuilds:
8586
name: K8s build for ${{ matrix.targetPlatform }} on version ${{ matrix.unityVersion }}
8687
runs-on: ubuntu-latest
@@ -120,9 +121,10 @@ jobs:
120121
kubeConfig: ${{ steps.read-base64.outputs.base64 }}
121122
volume: ${{ steps.k8s-unity-build.outputs.volume }}
122123
sourcePath: repo/build/
123-
- uses: actions/upload-artifact@v1
124+
- uses: actions/upload-artifact@v2
124125
with:
125126
name: Kubernetes Build (${{ matrix.targetPlatform }})
126127
path: k8s-volume-download
128+
retention-days: 14
127129
- run: ./action/bootstrapper/ReleaseLockAndAttemptShutdown.sh ${{ env.GKE_PROJECT }} ${{ env.GKE_CLUSTER }} ${{ env.GKE_ZONE }}
128130
if: ${{ always() }}

0 commit comments

Comments
 (0)