GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - linrongda/tencent-cdn-action: GitHub Action for refreshing and preheating Tencent Cloud CDN cache. Supports refreshing directories, refreshing URLs, and preheating URLs.

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace
BranchesTags
Open more actions menu

Latest commit

 

History

4 Commits
4 Commits

Folders and files

NameName
Last commit message
Last commit date
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
action.yml
action.yml
 
 
index.js
index.js
 
 
main.js
main.js
 
 
package.json
package.json
 
 
yarn.lock
yarn.lock
 
 

Repository files navigation

Tencent Cloud CDN & EdgeOne Action

GitHub Action for refreshing and preheating Tencent Cloud CDN & EdgeOne cache. Supports refreshing directories, refreshing URLs, and preheating URLs.


⚠️ Migration (breaking change)

This action no longer accepts the previous JSON-style inputs (cdn-paths, eo-paths, eo-zoneid). You must now provide targets using the multiline paths input. Each line contains one or more tokens separated by whitespace. Lines starting with a Zone ID (zone-...) are treated as EdgeOne zone entries; other tokens are treated as CDN paths.

Example migration:

Old (JSON inputs):

with:
  cdn-paths: '["https://example.com/"]'
  eo-zoneid: 'zone-XXXX'
  eo-paths: '["https://example.com/"]'

New (paths):

with:
  paths: |
    https://example.com/
    zone-XXXX https://example.com/

The new paths format is simpler and supports multiple EO zones in the same input.


✨ Features

  • ✅ PurgePathCache: Refresh directory cache (e.g. https://example.com/)
  • ✅ PurgeUrlsCache: Refresh specific URLs (e.g. https://example.com/index.html)
  • ✅ PushUrlsCache: Preheat specific URLs into CDN nodes

🚀 Usage

1. Add Secrets

In your GitHub repository, go to Settings → Secrets and variables → Actions and add:

  • TENCENT_SECRET_ID
  • TENCENT_SECRET_KEY

You can get these like: Create a sub-user to obtain Tencent Cloud API keys (You can select only QcloudCDNFullAccess or QcloudTEOFullAccess .)

Attention: Make sure the Tencent Cloud account you use has the QcloudCDNFullAccess or QcloudTEOFullAccess permissions!


2. Example Workflow

name: Deploy Website

on:
  push:
    branches:
      - main

jobs:
  deploy:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v4

      # ... Your build & deploy steps

      - name: Refresh CDN / EdgeOne cache
        uses: linrongda/tencent-cdn-action@v2
        with:
          secret_id: ${{ secrets.TENCENT_SECRET_ID }}
          secret_key: ${{ secrets.TENCENT_SECRET_KEY }}
          action: purgePath
          paths: |
            https://example.com/ https://www.example.com/
            zone-XXXX https://example.com/ https://eo.example.com/

3. Supported Inputs

Name Required Default Description
secret_id ✅ — Tencent Cloud API SecretId
secret_key ✅ — Tencent Cloud API SecretKey
action ✅ purgePath Operation type: purgePath / purgeUrls / pushUrls
paths ✅ — Multiline plain text. Each line tokens separated by spaces. Lines starting with zone-... are treated as EdgeOne zone entries.

4. Examples

Refresh whole directory

- uses: linrongda/tencent-cdn-action@v2
  with:
    secret_id: ${{ secrets.TENCENT_SECRET_ID }}
    secret_key: ${{ secrets.TENCENT_SECRET_KEY }}
    action: purgePath
    paths: |
      https://example.com/ https://www.example.com/
      zone-XXXX https://example.com/ https://eo.example.com/

Refresh specific URLs

- uses: linrongda/tencent-cdn-action@v2
  with:
    secret_id: ${{ secrets.TENCENT_SECRET_ID }}
    secret_key: ${{ secrets.TENCENT_SECRET_KEY }}
    action: purgeUrls
    paths: |
      https://example.com/index.html
      zone-XXXX https://example.com/style.css

Preheat URLs

- uses: linrongda/tencent-cdn-action@v2
  with:
    secret_id: ${{ secrets.TENCENT_SECRET_ID }}
    secret_key: ${{ secrets.TENCENT_SECRET_KEY }}
    action: pushUrls
    paths: |
      https://example.com/index.html
      zone-XXXX https://example.com/style.css

5. Outputs

🔧 Initializing CDN client
  Action type: purgePath
  Target cdn paths: ["https://example.com/"]

🚀 Executing CDN operation
  Selected operation: PurgePathCache (Directory refresh)
  Calling Tencent Cloud CDN API...
  CDN API call succeeded ✅

📦 API Response
  Full response JSON:
  {
    "TaskId": "123456789",
    "RequestId": "abcd-efgh-ijkl"
  }
  TaskId: 123456789
  RequestId: abcd-efgh-ijkl

About

GitHub Action for refreshing and preheating Tencent Cloud CDN cache. Supports refreshing directories, refreshing URLs, and preheating URLs.

Resources

Readme
GPL-3.0 license
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.