Skip to content

Commit

Permalink
CI: add cron to remove obsolete packages
Browse files Browse the repository at this point in the history
  • Loading branch information
Croydon committed Dec 14, 2020
1 parent 89aa817 commit e6ed7ba
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/remove-obsolete-packages.yml
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 "*/*"

0 comments on commit e6ed7ba

Please sign in to comment.