Skip to content

Commit

Permalink
Update size-label.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
guibranco authored Oct 4, 2023
1 parent ec3f3ed commit 595b95e
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/size-label.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,27 @@ name: Label based on PR size

on:
pull_request:
pull_request_target:
workflow_dispatch:

jobs:
size-label:
permissions: write-all
runs-on: ubuntu-latest

steps:

- name: size-label
if: >-
(
github.event_name == 'pull_request' &&
github.event.pull_request.head.repo.full_name == github.repository
) || (
github.event_name == 'pull_request_target' &&
github.event.pull_request.head.repo.full_name != github.repository
) || (
github.event_name == 'workflow_dispatch'
)
uses: "pascalgn/[email protected]"
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"

0 comments on commit 595b95e

Please sign in to comment.