blob: 42502f3039d7659c2e68758a48f3595527392582 [file] [log] [blame]
Matthias Andreas Benkardd1f5b682023-11-18 13:18:30 +01001name: Update postscreen_access.cidr
2
3on:
4 schedule:
5 # Monthly
6 - cron: "0 0 1 * *"
7 workflow_dispatch: # Allow to run workflow manually
8
9permissions:
10 contents: read # to fetch code (actions/checkout)
11
12
13jobs:
14 Update-postscreen_access_cidr:
15 runs-on: ubuntu-latest
16 steps:
17 - name: Checkout
18 uses: actions/checkout@v4
19
20 - name: Generate postscreen_access.cidr
21 run: |
22 bash helper-scripts/update_postscreen_whitelist.sh
23
24 - name: Create Pull Request
25 uses: peter-evans/create-pull-request@v5
26 with:
27 token: ${{ secrets.mailcow_action_Update_postscreen_access_cidr_pat }}
28 commit-message: update postscreen_access.cidr
29 committer: milkmaker <milkmaker@mailcow.de>
30 author: milkmaker <milkmaker@mailcow.de>
31 signoff: false
32 branch: update/postscreen_access.cidr
33 base: staging
34 delete-branch: true
35 add-paths: |
36 data/conf/postfix/postscreen_access.cidr
37 title: '[Postfix] update postscreen_access.cidr'
38 body: |
39 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)