Schedule posts to Bluesky with Cloudflare workers. skyscheduler.work
cf tool bsky-tool cloudflare bluesky schedule bsky service social-media cloudflare-workers
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

new cache cleaning script

Try not to clear cache literally all the time

+56 -15
+51
.github/workflows/cache.yml
··· 1 + name: Clear CF Cache 2 + 3 + on: 4 + push: 5 + branches: ["main"] 6 + paths-ignore: 7 + - ".github/**" 8 + - "README.md" 9 + - "LICENSE" 10 + - ".dev.vars*" 11 + - ".gitattributes" 12 + - ".markdownlint.json" 13 + workflow_dispatch: 14 + inputs: 15 + clear_cache: 16 + description: "Clear Cache" 17 + required: true 18 + type: boolean 19 + 20 + concurrency: 21 + group: ${{ github.workflow }}-${{ github.ref }} 22 + cancel-in-progress: true 23 + 24 + jobs: 25 + clear_cache: 26 + runs-on: ubuntu-latest 27 + continue-on-error: false 28 + environment: 29 + name: cloudflare 30 + steps: 31 + - name: Cache Clean Check 32 + uses: dorny/paths-filter@v4.0.1 33 + id: filter 34 + with: 35 + base: ${{ github.ref }} 36 + filters: | 37 + cache_clear: 38 + - 'src/utils/appScripts.ts' 39 + - 'src/pages/**' 40 + - 'src/layout/helpers/**' 41 + - 'src/layout/fields/**' 42 + - 'assets/**' 43 + - '!assets/screenshots/**' 44 + - '!assets/.assetsignore' 45 + - name: Cloudflare Cache Cleaner 46 + uses: Cyb3r-Jak3/action-cloudflare-cache@v3.0.0 47 + if: success() && (steps.filter.outputs.cache_clear == 'true' || inputs.clear_cache == 'true') 48 + with: 49 + zone: ${{ secrets.CLOUDFLARE_ZONE }} 50 + api_token: ${{ secrets.CLOUDFLARE_TOKEN }} 51 + account_id: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
+5 -15
.github/workflows/clean.yml
··· 1 - # This workflow cleans up the cf cache for your application 2 - # as well as cleans up previous GH actions queues 3 - name: Clean Environment 1 + # Cleans up previous GH action queues 2 + name: Clean GH Actions 4 3 5 4 on: 6 5 push: ··· 15 14 cancel-in-progress: true 16 15 17 16 jobs: 18 - # Clean job 19 - cleanup: 17 + # Clean up github job 18 + cleanup_actions: 20 19 runs-on: ubuntu-latest 21 20 permissions: write-all 22 - continue-on-error: true 23 - environment: 24 - name: cloudflare 25 21 steps: 26 22 - name: Cleanup Actions 27 23 uses: igorjs/gh-actions-clean-workflow@v7 28 24 with: 29 25 token: ${{ secrets.GITHUB_TOKEN }} 30 26 runs_to_keep: 1 31 - runs_older_than: 0 32 - - name: Cloudflare Cache Cleaner 33 - uses: Cyb3r-Jak3/action-cloudflare-cache@v3.0.0 34 - with: 35 - zone: ${{ secrets.CLOUDFLARE_ZONE }} 36 - api_token: ${{ secrets.CLOUDFLARE_TOKEN }} 37 - account_id: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} 27 + runs_older_than: 0