Skip to content

Commit

Permalink
Reminder to check for MOJ IP address updates (#1060)
Browse files Browse the repository at this point in the history
Reminder to check for MOJ ip address updates

Co-authored-by: Mitch Dawson <[email protected]>
  • Loading branch information
MatMoore and mitchdawson1982 authored Nov 18, 2024
1 parent 2baadc5 commit 1f90f07
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/ip-check-create-issue.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Create issue to check for updates to the MOJ IP address list
on:
schedule:
# Every 6 months
- cron: "0 0 1 5,11 *"

jobs:
create_issue:
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
steps:
- uses: actions/checkout@v4

- name: Create issue
env:
label: "housekeeping"
run: |
now=$(date +'%Y-%m-%d')
title="Check for updates to the MOJ IP Address list"
body="Internal IPs are exempted from rate limiting. See https://github.com/ministryofjustice/moj-ip-addresses"
gh issue create --title "${title}" --body "${body}" --label "${label}"

0 comments on commit 1f90f07

Please sign in to comment.