-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reminder to check for MOJ ip address updates
- Loading branch information
Showing
1 changed file
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}" |