Skip to content

Commit

Permalink
Reminder to check for MOJ ip address updates
Browse files Browse the repository at this point in the history
  • Loading branch information
MatMoore committed Nov 14, 2024
1 parent d853091 commit bcd26ea
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 bcd26ea

Please sign in to comment.