Update github ip whitelist #30
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
name: "Update github ip whitelist" | |
on: | |
repository_dispatch: | |
workflow_dispatch: | |
schedule: | |
- cron: '51 2 * * *' | |
permissions: | |
pull-requests: write | |
contents: write | |
jobs: | |
update-github-ip-whitelist: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- name: Update ip whitelist | |
run: | | |
curl https://api.github.com/meta | jq '.hooks' > ./nix/modules/github-webhook-ips.json | |
- name: Create Pull Request | |
uses: peter-evans/create-pull-request@v5 | |
with: | |
title: Update github ip whitelist | |
labels: merge-queue |