update_postscreen_access_list.yml 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. name: Update postscreen_access.cidr
  2. on:
  3. schedule:
  4. # Monthly
  5. - cron: "0 0 1 * *"
  6. workflow_dispatch: # Allow to run workflow manually
  7. permissions:
  8. contents: read # to fetch code (actions/checkout)
  9. jobs:
  10. Update-postscreen_access_cidr:
  11. runs-on: ubuntu-latest
  12. steps:
  13. - name: Checkout
  14. uses: actions/checkout@v4
  15. - name: Generate postscreen_access.cidr
  16. run: |
  17. bash helper-scripts/update_postscreen_whitelist.sh
  18. - name: Create Pull Request
  19. uses: peter-evans/create-pull-request@v7
  20. with:
  21. token: ${{ secrets.mailcow_action_Update_postscreen_access_cidr_pat }}
  22. commit-message: update postscreen_access.cidr
  23. committer: milkmaker <milkmaker@mailcow.de>
  24. author: milkmaker <milkmaker@mailcow.de>
  25. signoff: false
  26. branch: update/postscreen_access.cidr
  27. base: staging
  28. delete-branch: true
  29. add-paths: |
  30. data/conf/postfix/postscreen_access.cidr
  31. title: '[Postfix] update postscreen_access.cidr'
  32. body: |
  33. This PR updates the postscreen_access.cidr using GitHub Actions and [helper-scripts/update_postscreen_whitelist.sh](https://github.com/mailcow/mailcow-dockerized/blob/master/helper-scripts/update_postscreen_whitelist.sh)