Skip to content

Commit

Permalink
Stop using label enforcement and clean up shared workflow (#298)
Browse files Browse the repository at this point in the history
  • Loading branch information
withinfocus authored Jul 18, 2024
1 parent cc4aa15 commit 2da8ed1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 35 deletions.
19 changes: 3 additions & 16 deletions .github/workflows/_enforce-labels.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,16 @@
---
name: Enforce PR labels

on:
workflow_call:

jobs:
enforce-label:
if: ${{ contains(github.event.*.labels.*.name, 'hold') || contains(github.event.*.labels.*.name, 'needs-qa') }}
if: ${{ contains(github.event.*.labels.*.name, 'hold') }}
name: Enforce label
runs-on: ubuntu-22.04
steps:
- name: Check for label
run: |
echo "PRs with the hold or needs-qa labels cannot be merged"
echo "### :x: PRs with the hold or needs-qa labels cannot be merged" >> $GITHUB_STEP_SUMMARY
echo "PRs with the hold label cannot be merged"
echo "### :x: PRs with the hold label cannot be merged" >> $GITHUB_STEP_SUMMARY
exit 1
# enforce-version-label:
# if: ${{ !contains(github.event.*.labels.*.name, 'version') }}
# name: Enforce version label
# runs-on: ubuntu-22.04

# steps:
# - name: Check for label
# run: |
# echo "PR without the version label cannot be merged."
# echo "### :x: PR without the version label cannot be merged" >> $GITHUB_STEP_SUMMARY
# exit 1
19 changes: 0 additions & 19 deletions .github/workflows/enforce-labels.yml

This file was deleted.

0 comments on commit 2da8ed1

Please sign in to comment.