[action] move delete-old-package into daily-check
authorYelin Jeong <yelini.jeong@samsung.com>
Mon, 31 Jul 2023 05:50:19 +0000 (14:50 +0900)
committer추지호/SoC Architecture팀(SR)/삼성전자 <jiho.chu@samsung.com>
Tue, 1 Aug 2023 06:35:27 +0000 (15:35 +0900)
This patch moves delete-old-package step into daily-check workflows

Signed-off-by: Yelin Jeong <yelini.jeong@samsung.com>
.github/workflows/daily-check.yml
.github/workflows/delete-old-package.yml [deleted file]

index 9ec9a74a455fb7d5f004f6fd2d2d1f6cadb8d802..a985d318f89935e4b97a70881f339bf43f9531be 100644 (file)
@@ -110,3 +110,10 @@ jobs:
             echo "nothing to commit"
           fi
         shell: bash
+
+      - name: Delete old packages
+        uses: ./.github/actions/delete-package-with-spec
+        with:
+          spec_path: $GITHUB_WORKSPACE/.github/actions/delete-package-with-spec/before3weeks.json
+          art_id: $BART_ID
+          art_pw: $BART_PW
diff --git a/.github/workflows/delete-old-package.yml b/.github/workflows/delete-old-package.yml
deleted file mode 100644 (file)
index 11b8c2a..0000000
+++ /dev/null
@@ -1,34 +0,0 @@
-name: delete old package
-
-on:
-  schedule:
-    # scheduled workflow run on the latest commit on the default or base
-    # branch.
-    - cron: '00 01 * * 0-5'
-
-env:
-  BART_ID: ${{ secrets.BART_ID }}
-  BART_PW: ${{ secrets.BART_PW }}
-
-jobs:
-  delete-old-package:
-    runs-on: [ code-large ]
-    container:
-      image: aip-docker-local.bart.sec.samsung.net/n2s2_docker/bionic:latest
-      # for chroot-based build system
-      options: --privileged
-      credentials:
-        username: ${{ secrets.BART_ID }}
-        password : ${{ secrets.BART_PW }}
-
-    timeout-minutes: 30
-
-    steps:
-      - name: Clone your repository
-        uses: CODE-Actions/checkout@v2
-      - name: Delete old pacakges
-        uses: ./.github/actions/delete-package-with-spec
-        with:
-          spec_path: $GITHUB_WORKSPACE/.github/actions/delete-package-with-spec/before3weeks.json
-          art_id: $BART_ID
-          art_pw: $BART_PW