[WordPress] 外掛分享: Deploy Webhook Github Actions

首頁外掛目錄 › Deploy Webhook Github Actions
10+
安裝啟用
尚無評分
1022 天前
最後更新
問題解決
WordPress 5.0+ PHP 7.0+ v1.0.0 上架:2023-05-30

內容簡介

DEPLOY WEBHOOK GITHUB ACTIONS PLUGIN

- 這是一個 WordPress 外掛,能在更新內容後通過 Github Actions REST API 手動觸發部署工作流程。

功能:
- 在更新內容後,使用者只能在 WordPress 管理選單中進行操作,以觸發 Github Actions 的部署工作流程。

設定:
- 在設定頁面上填寫所需的資料。下面是相關參考資料:

- OWNER:擁有該存儲庫的使用者名稱或組織名稱。
- REPO:存儲庫的名稱。
- WORKFLOW_ID:可以填寫完整的 .yml 檔名(如 "manual-trigger-workflow.yml"),或是要觸發的工作流程的 ID。可以在 GitHub 存儲庫的 "Actions" 頁面找到工作流程的 ID,點擊工作流程的名稱,並查看網頁的 URL,ID 就是最後一個斜杠後面的數字。
- PERSONAL_ACCESS_TOKEN:一個具有存儲庫範圍的個人存取權杖(PAT)。您可以透過前往 GitHub 帳戶的 "設定" > "開發人員設定" > "個人存取權杖" 創建 PAT。
- REF:存儲庫的主要分支的名稱。重要提示:目前該外掛能夠為沒有輸入的 workflow_dispatch 觸發器創建 Webhook,這個功能將在以後的版本中實現。

待辦事項:
- 新增功能:接受輸入。

作者:
- Nicolás di Rago。
- https://www.nicolasdirago.com/

問題與答案:

- 這是什麼?
- 這是一個 WordPress 外掛,它可以在更新內容後通過 Github Actions REST API 手動觸發部署工作流程。

- 該外掛有什麼功能?
- 該外掛可以在更新內容後通過 Github Actions 觸發部署工作流程。只有具有管理權限的使用者可以從 WordPress 管理選單執行此操作。

- 我需要填寫哪些設定?
- 您需要在設定頁面上填寫以下資料:
- OWNER:擁有該存儲庫的使用者名稱或組織名稱。
- REPO:存儲庫的名稱。
- WORKFLOW_ID:可以填寫 .yml 檔案的完整名稱(例如 "manual-trigger-workflow.yml"),或者要觸發的工作流程的 ID。您可以在 GitHub 存儲庫的 "Actions" 頁籤中找到工作流程的 ID。點擊工作流程的名稱,然後查看頁面的 URL。ID 是 URL 中最後一個斜杠後面的數字。
- PERSONAL_ACCESS_TOKEN:具有存儲庫範圍的個人存取權杖(PAT)。您可以前往 GitHub 帳戶的 "設定" > "開發人員設定" > "個人存取權杖" 創建 PAT。
- REF:存儲庫的主要分支的名稱。重要提示:目前該外掛可以為沒有輸入的 workflow_dispatch 觸發器創建 Webhook。此功能將在以後的版本中實現。

- 有什麼待辦事項?
- 待辦事項包括:添加功能,以接受輸入。

- 誰是該外掛的作者?
- 該外掛是由 Nicolás di Rago 創建的。

- 如何聯絡作者?
- 您可以通過訪問 https://www.nicolasdirago.com/ 聯絡作者。

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.0.0) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Deploy Webhook Github Actions」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

DEPLOY WEBHOOK GITHUB ACTIONS PLUGIN
A WordPress plugin to manually trigger a deploy workflow via the Github Actions REST API after updating content.
FEATURE
Trigger a deploy workflow via Github Actions after updating content. Users with manage_capabilities are only allowed to perform the action from the the WordPress admin menu.
SETTINGS
Fill out the form with the data required on the Settings Page. Find a reference below:
OWNER: The username or organization name that owns the repository.
REPO: The name of the repository.
WORKFLOW_ID: You can either write the full name of your .yml file, ie. “manual-trigger-workflow.yml” or the ID of the workflow that you want to trigger. You can find the ID of a workflow by going to the “Actions” tab of your repository on GitHub, clicking on the name of the workflow, and looking at the URL of the page. The ID is the number that appears after the last forward slash in the URL.
PERSONAL_ACCESS_TOKEN: A personal access token (PAT) with the repo scope. You can create a PAT by going to “Settings” > “Developer settings” > “Personal access tokens” in your GitHub account.
REF: The name of your repository’s main branch. Important: At the moment the plugin is able to create a webhook for a workflow_dispatch trigger without inputs. This feature is planned for later versions.
TO DO
Add feature: accept inputs.
AUTHOR
Created by Nicolás di Rago.
https://www.nicolasdirago.com/

延伸相關外掛

文章
Filter
Apply Filters
Mastodon