mirror of
https://github.com/GTNewHorizons/GTNH-Actions-Workflows.git
synced 2026-10-16 20:37:28 +02:00
Reduce B&T Artifact Retention Org-Wide (#72)
This commit is contained in:
@@ -52,6 +52,9 @@ on:
|
||||
default: false
|
||||
type: boolean
|
||||
|
||||
env:
|
||||
ARTIFACT_RETENTION_DAYS: ${{ github.event.repository.private && 5 || 30 }}
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
|
||||
cancel-in-progress: true
|
||||
@@ -157,14 +160,13 @@ jobs:
|
||||
with:
|
||||
name: ${{ github.repository_id }}-reports
|
||||
path: build/reports/
|
||||
retention-days: 90
|
||||
retention-days: ${{ env.ARTIFACT_RETENTION_DAYS }}
|
||||
|
||||
- name: Attempt to make a PR fixing spotless errors
|
||||
if: >-
|
||||
${{ !inputs.disable-spotless-pr &&
|
||||
failure() && steps.build_mod.conclusion == 'failure' &&
|
||||
github.event_name == 'pull_request' &&
|
||||
!github.event.pull_request.draft &&
|
||||
github.event.pull_request.head.repo.full_name == github.repository }}
|
||||
run: |
|
||||
git reset --hard
|
||||
@@ -288,11 +290,12 @@ jobs:
|
||||
PR_NUMBER: ${{ github.event.number }}
|
||||
|
||||
- name: Attach compilation artifacts as ZIP
|
||||
if: ${{ !github.event.repository.private }}
|
||||
uses: actions/upload-artifact@v7
|
||||
with:
|
||||
name: ${{ github.repository_id }}-build-libs
|
||||
path: build/libs/
|
||||
retention-days: 90
|
||||
retention-days: ${{ env.ARTIFACT_RETENTION_DAYS }}
|
||||
|
||||
- name: Find individual compilation artifacts
|
||||
id: find-artifacts
|
||||
@@ -315,7 +318,7 @@ jobs:
|
||||
uses: actions/upload-artifact@v7
|
||||
with:
|
||||
path: ${{ steps.find-artifacts.outputs.file_0 }}
|
||||
retention-days: 90
|
||||
retention-days: ${{ env.ARTIFACT_RETENTION_DAYS }}
|
||||
archive: false
|
||||
|
||||
- name: Upload individual compilation artifact 2
|
||||
@@ -323,7 +326,7 @@ jobs:
|
||||
uses: actions/upload-artifact@v7
|
||||
with:
|
||||
path: ${{ steps.find-artifacts.outputs.file_1 }}
|
||||
retention-days: 90
|
||||
retention-days: ${{ env.ARTIFACT_RETENTION_DAYS }}
|
||||
archive: false
|
||||
|
||||
- name: Upload individual compilation artifact 3
|
||||
@@ -331,7 +334,7 @@ jobs:
|
||||
uses: actions/upload-artifact@v7
|
||||
with:
|
||||
path: ${{ steps.find-artifacts.outputs.file_2 }}
|
||||
retention-days: 90
|
||||
retention-days: ${{ env.ARTIFACT_RETENTION_DAYS }}
|
||||
archive: false
|
||||
|
||||
- name: Upload individual compilation artifact 4
|
||||
@@ -339,7 +342,7 @@ jobs:
|
||||
uses: actions/upload-artifact@v7
|
||||
with:
|
||||
path: ${{ steps.find-artifacts.outputs.file_3 }}
|
||||
retention-days: 90
|
||||
retention-days: ${{ env.ARTIFACT_RETENTION_DAYS }}
|
||||
archive: false
|
||||
|
||||
- name: Upload individual compilation artifact 5
|
||||
@@ -347,7 +350,7 @@ jobs:
|
||||
uses: actions/upload-artifact@v7
|
||||
with:
|
||||
path: ${{ steps.find-artifacts.outputs.file_4 }}
|
||||
retention-days: 90
|
||||
retention-days: ${{ env.ARTIFACT_RETENTION_DAYS }}
|
||||
archive: false
|
||||
|
||||
- name: Upload individual compilation artifact 6
|
||||
@@ -355,7 +358,7 @@ jobs:
|
||||
uses: actions/upload-artifact@v7
|
||||
with:
|
||||
path: ${{ steps.find-artifacts.outputs.file_5 }}
|
||||
retention-days: 90
|
||||
retention-days: ${{ env.ARTIFACT_RETENTION_DAYS }}
|
||||
archive: false
|
||||
|
||||
- name: Upload individual compilation artifact 7
|
||||
@@ -363,7 +366,7 @@ jobs:
|
||||
uses: actions/upload-artifact@v7
|
||||
with:
|
||||
path: ${{ steps.find-artifacts.outputs.file_6 }}
|
||||
retention-days: 90
|
||||
retention-days: ${{ env.ARTIFACT_RETENTION_DAYS }}
|
||||
archive: false
|
||||
|
||||
- name: Upload individual compilation artifact 8
|
||||
@@ -371,7 +374,7 @@ jobs:
|
||||
uses: actions/upload-artifact@v7
|
||||
with:
|
||||
path: ${{ steps.find-artifacts.outputs.file_7 }}
|
||||
retention-days: 90
|
||||
retention-days: ${{ env.ARTIFACT_RETENTION_DAYS }}
|
||||
archive: false
|
||||
|
||||
- name: Upload individual compilation artifact 9
|
||||
@@ -379,7 +382,7 @@ jobs:
|
||||
uses: actions/upload-artifact@v7
|
||||
with:
|
||||
path: ${{ steps.find-artifacts.outputs.file_8 }}
|
||||
retention-days: 90
|
||||
retention-days: ${{ env.ARTIFACT_RETENTION_DAYS }}
|
||||
archive: false
|
||||
|
||||
- name: Upload individual compilation artifact 10
|
||||
@@ -387,5 +390,5 @@ jobs:
|
||||
uses: actions/upload-artifact@v7
|
||||
with:
|
||||
path: ${{ steps.find-artifacts.outputs.file_9 }}
|
||||
retention-days: 90
|
||||
retention-days: ${{ env.ARTIFACT_RETENTION_DAYS }}
|
||||
archive: false
|
||||
|
||||
Reference in New Issue
Block a user