Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -282,8 +282,7 @@ jobs:
cache-to: type=local,dest=/tmp/.buildx-cache

tentacles:
needs: [ build, tests ]
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/dev' || startsWith(github.ref, 'refs/tags/')
needs: [ build ]
name: ${{ matrix.os }}${{ matrix.arch }} - Python ${{ matrix.version }} - Upload Tentacles
runs-on: ${{ matrix.os }}
strategy:
Expand Down Expand Up @@ -334,7 +333,6 @@ jobs:
python packages/tentacles/scripts/clear_cloudflare_cache.py ${TARGET_BRANCH#refs/*/}

- name: Publish latest tentacles
if: github.ref == 'refs/heads/dev' && startsWith(github.ref, 'refs/tags') != true
env:
S3_API_KEY: ${{ secrets.S3_API_KEY }}
S3_API_SECRET_KEY: ${{ secrets.S3_API_SECRET_KEY }}
Expand Down
1 change: 1 addition & 0 deletions packages/tentacles/scripts/clear_cloudflare_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ def _send_purge_cache_request(url: str, cloudflare_token: str, urls_to_purge: li
) as resp:
if resp.status_code == 200:
print(f"Cache purged for {', '.join(urls_to_purge)}")
print(resp.text)
else:
print(f"Error when purging cache, status: {resp.status_code}, body: {resp.text}")

Expand Down
Loading