Skip to content

Commit aead4e8

Browse files
committed
workflows: CI: remove retention; cleanup: remove current cleanup run
1 parent 16b7a89 commit aead4e8

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

.github/workflows/CI.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,20 +91,17 @@ jobs:
9191
name: SmartTube_${{ steps.get_version.outputs.VERSION_NAME }}_arm64
9292
path: ./smarttubetv/build/outputs/apk/stbeta/debug/*_arm64-v8a.apk
9393
if-no-files-found: error
94-
retention-days: 1
9594

9695
- name: Upload ARMv7 APK
9796
uses: actions/upload-artifact@v6
9897
with:
9998
name: SmartTube_${{ steps.get_version.outputs.VERSION_NAME }}_armeabi-v7a
10099
path: ./smarttubetv/build/outputs/apk/stbeta/debug/*_armeabi-v7a.apk
101100
if-no-files-found: error
102-
retention-days: 1
103101

104102
- name: Upload x86 APK
105103
uses: actions/upload-artifact@v6
106104
with:
107105
name: SmartTube_${{ steps.get_version.outputs.VERSION_NAME }}_x86
108106
path: ./smarttubetv/build/outputs/apk/stbeta/debug/*_x86.apk
109107
if-no-files-found: error
110-
retention-days: 1

.github/workflows/cleanup.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ jobs:
1414
- uses: actions/github-script@v7
1515
with:
1616
script: |
17-
const KEEP = 1;
18-
const workflowNames = ["VirusTotal Scan", "Cleanup old workflow runs"];
17+
const KEEP = 0;
18+
const workflowNames = ["VirusTotal Scan"];
1919
2020
// Get workflow ID
2121
const workflows = await github.rest.actions.listRepoWorkflows({
@@ -49,4 +49,11 @@ jobs:
4949
});
5050
}
5151
}
52+
- name: Delete this cleanup run
53+
run: |
54+
curl -X DELETE \
55+
-H "Accept: application/vnd.github+json" \
56+
-H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
57+
https://api.github.com/repos/${{ github.repository }}/actions/runs/${{ github.run_id }}
58+
5259

0 commit comments

Comments
 (0)