Skip to content

Commit

Permalink
fix: wf (#18)
Browse files Browse the repository at this point in the history
* feat: run script.sh

Signed-off-by: Nikita Korolev <[email protected]>

* fix: wf

Signed-off-by: Nikita Korolev <[email protected]>

---------

Signed-off-by: Nikita Korolev <[email protected]>
  • Loading branch information
universal-itengineer authored Apr 11, 2024
1 parent e8a7ff4 commit 6344f9f
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions .github/workflows/release-please.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,22 +18,6 @@ jobs:
check_pr_closure:
runs-on: ubuntu-latest

steps:
- name: Check if PR title contains 'release'
id: check_title
run: |
title=$(jq -r .pull_request.title $GITHUB_EVENT_PATH)
if [[ "$title" == *"release"* ]]; then
echo "PR title contains 'release'."
approved_users=("username2") # List of approved GitHub usernames
user=$(jq -r .pull_request.user.login $GITHUB_EVENT_PATH)
if [[ ! " ${approved_users[@]} " =~ " $user " ]]; then
echo "Not authorized to close PR with 'release' title."
exit 1
fi
fi
release-please:
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit 6344f9f

Please sign in to comment.