update checkout version #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: Sync Lists to Cloudflare R2 | |
on: [push] | |
jobs: | |
sync: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Install rclone | |
run: | | |
curl https://rclone.org/install.sh | sudo bash | |
- name: Configure rclone | |
run: | | |
mkdir -p ~/.config/rclone | |
echo "[r2] | |
type = s3 | |
provider = Cloudflare | |
env_auth = false | |
access_key_id = ${{ secrets.R2_ACCESS_KEY_ID }} | |
secret_access_key = ${{ secrets.R2_SECRET_ACCESS_KEY }} | |
region = auto | |
endpoint = https://${{ secrets.CF_ACCOUNT_ID }}.r2.cloudflarestorage.com | |
" > ~/.config/rclone/rclone.conf | |
- name: Sync to R2 | |
run: rclone sync . r2:pihole-blocklists --progress --exclude .git/ --exclude .github/ --exclude .gitignore --exclude *.md --exclude gaming/*.md --exclude autodiscover/*.md --exclude LICENSE |