mirror of
https://github.com/Jermolene/TiddlyWiki5.git
synced 2025-12-05 18:20:38 -08:00
* refactor: use TiddlyWiki/cerebrus@v5, and rename yml * continue-on-error: false * Update .github/workflows/pr-validation.yml to restrict contents permissions Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --------- Co-authored-by: Saq Imtiaz <saq.imtiaz@gmail.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
36 lines
819 B
YAML
36 lines
819 B
YAML
name: Comment on PR build size (Trusted workflow)
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
inputs:
|
|
pr_number:
|
|
required: true
|
|
type: string
|
|
base_ref:
|
|
required: true
|
|
type: string
|
|
pr_size:
|
|
required: true
|
|
type: string
|
|
base_size:
|
|
required: true
|
|
type: string
|
|
|
|
jobs:
|
|
comment-on-pr:
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
pull-requests: write
|
|
contents: read
|
|
|
|
steps:
|
|
- name: Build and check size
|
|
uses: TiddlyWiki/cerebrus@v5
|
|
with:
|
|
pr_number: ${{ inputs.pr_number }}
|
|
repo: ${{ github.repository }}
|
|
base_ref: ${{ inputs.base_ref }}
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
mode: size:comment
|
|
pr_size: ${{ inputs.pr_size }}
|
|
base_size: ${{ inputs.base_size }}
|