chore(ci): Separate workflows by workflow trigger, rename config files #1
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Label PRs by size | |
on: | |
pull_request: | |
branches: | |
- "main" | |
jobs: | |
# Docs: https://github.com/cbrgm/pr-size-labeler-action | |
label-by-size: | |
# do not run on forks | |
if: github.repository == 'mdn/content' | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
persist-credentials: false | |
- name: Label PR based on size | |
uses: cbrgm/pr-size-labeler-action@main | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
github_repository: ${{ github.repository }} # Repository name | |
github_pr_number: ${{ github.event.number }} # Pull request number | |
config_file_path: ".github/pr-labels-by-size.yml" # Path to pr-size-labeler config |