Update Update.yml #3
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 IP Ranges | |
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
schedule: | |
- cron: "53 */3 * * *" # I'm on a prime schedule - every 3 hours at 53 minutes, because ordinary schedules are just too divisible! :) | |
jobs: | |
run-script: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.head_ref }} | |
- name: Run Googlebot Script | |
run: | | |
chmod +x ./googlebot/start.sh | |
./googlebot/start.sh | |
- name: Extract Timestamp from File (Googlebot) | |
id: extract-timestamp | |
run: echo "googlebot_utc=$(<./googlebot/timestamp.txt)" >> "$GITHUB_OUTPUT" | |
- name: Git Auto Commit (Googlebot) | |
uses: stefanzweifel/git-auto-commit-action@v5 | |
with: | |
commit_message: "(bot) Apply Googlebot changes - ${{ steps.extract-timestamp.outputs.googlebot_utc }}" | |
push_options: '--force' |