Skip to content

add new plugin:Achuan-2/siyuan-plugin-text-process #450

add new plugin:Achuan-2/siyuan-plugin-text-process

add new plugin:Achuan-2/siyuan-plugin-text-process #450

Workflow file for this run

name: PR Check
# REF https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#pull_request_target
on:
pull_request_target:
types:
- opened
- synchronize
- reopened
branches:
- main
paths:
- icons.json
- plugins.json
- templates.json
- themes.json
- widgets.json
jobs:
check:
runs-on: ubuntu-latest
env:
PAT: ${{ secrets.PAT }}
PR_REPO_PATH: ./pr-repo
FILE_PATH_CHECK_RESULT_OUTPUT: ./templates/check-result.md
steps:
- name: Check out current repo
uses: actions/checkout@v3
# REF https://github.com/marketplace/actions/checkout#checkout-multiple-repos-nested
# REF https://github.com/marketplace/actions/checkout#checkout-pull-request-head-commit-instead-of-merge-commit
- name: Check out PR repo
uses: actions/checkout@v3
with:
path: ${{ env.PR_REPO_PATH }}
ref: ${{ github.event.pull_request.head.sha }}
repository: ${{ github.event.pull_request.head.repo.full_name }}
token: ${{ env.PAT }}
- name: Setup Golang
uses: actions/setup-go@v3
with:
go-version: '1.22'
- name: Go Check
run: go run ./actions/check
# REF https://github.com/marketplace/actions/comment-pull-request
- name: Comment PR with check-result
uses: thollander/actions-comment-pull-request@v2
with:
filePath: ${{ env.FILE_PATH_CHECK_RESULT_OUTPUT }}
comment_tag: check-result