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
+++ /dev/null
-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