Skip to content

Commit

Permalink
🎨 simplify inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
flaxel authored and 0x46616c6b committed Apr 25, 2024
1 parent c56b97d commit 2d727ad
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/template_do_not_merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,6 @@ name: Do Not Merge

on:
workflow_call:
inputs:
label:
required: false
type: string
default: do not merge

jobs:
do-not-merge:
Expand All @@ -19,7 +14,7 @@ jobs:
# see https://docs.github.com/en/actions/learn-github-actions/expressions#contains
steps:
- name: fail if label exists
if: contains(github.event.pull_request.labels.*.name, '${{ inputs.label }}')
if: contains(github.event.pull_request.labels.*.name, 'do not merge')
run: |
echo "This PR has the label '${{ inputs.label }}'."
echo "This PR has the label 'do not merge'."
exit 1

0 comments on commit 2d727ad

Please sign in to comment.