Asynchronous action for updating Alpa repository through Packit <-> Copr integration with email notification. New updates are checked via Anytia.
For anybody who want their own Alpa repository.
This action is mainly designed for cron jobs. In case of other triggers, such as push or similar, with a large Alpa repository (hundreds of packages) you can - and probably will - soon hit the monthly limit for GitHub Actions, which is 3000 minutes for the free version. Since updating a package via Copr is a time-consuming thing, even with the asynchronous implementation of this action, this limit will be exceeded very easily with triggers like push, etc.
name: Autoupdate Alpa repository
on:
schedule:
# every month on 10th day of the month, at 04:04 AM
- cron: "4 4 10 * *"
jobs:
update:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Autoupdate Alpa repository
uses: alpa-team/autoupdate-alpa-repository@<tag_name>
with:
email-name: [email protected]
smtp-address: smtp.water.xx
email-password: ${{ secrets.ALPA_MAIL_BOT_PASSWORD }}
debug: true
required
This is email address of your bot account. You have to create email account to be notified of failed updates and I really recommend to create separate email for this because of security reasons.
required
smtp address of the mail provider. For gmail it is `smtp.gmail.com
required
Warning! Don't you dare to store here your password directly even if it is just dummy email! Use secrets to store the email password there.
not required
Set to true
if you want to see debug logs. Otherwise set to false
.