Daily scrape of CloudProvider IP Ranges and updating the files in the repo #509
This file contains hidden or 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: Daily scrape of CloudProvider IP Ranges and updating the files in the repo | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '0 0 * * *' | |
jobs: | |
scheduled: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Build and Update | |
run: make build && make update | |
- name: Commit and push if it changed | |
run: |- | |
git config user.name "AutomatedDailyUpdater" | |
git config user.email "[email protected]" | |
git add -A | |
timestamp=$(date -u) | |
git commit -m "Update CloudProvider IpRanges: ${timestamp}" || exit 0 | |
git push |