-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CI: add cron to remove obsolete packages
See bincrafters/community#1320 Thanks @ericLemanissier!
- Loading branch information
Showing
1 changed file
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
on: | ||
push: | ||
schedule: | ||
- cron: "0 0 * * *" | ||
|
||
name: "remove-obsolete-packages" | ||
|
||
jobs: | ||
remove-obsolete-packages: | ||
name: "Remove Obsolete Packages" | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/setup-python@v1 | ||
with: | ||
python-version: "3.8" | ||
- name: "Install Conan" | ||
run: | | ||
pip install --user conan | ||
- name: "Remove Obsolete Packages" | ||
env: | ||
CONAN_LOGIN_USERNAME: ${{ secrets.CONAN_LOGIN_USERNAME }} | ||
CONAN_PASSWORD: ${{ secrets.CONAN_PASSWORD }} | ||
CONAN_REQUEST_TIMEOUT: 3600 | ||
run: | | ||
conan remote add bincrafters https://api.bintray.com/conan/bincrafters/public-conan | ||
conan user ${CONAN_LOGIN_USERNAME} -r bincrafters -p ${CONAN_PASSWORD} | ||
conan remove -r bincrafters --outdated --force "*/*" |