-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9017083
commit 1607785
Showing
2 changed files
with
28 additions
and
2 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
name: Deploy to develop | ||
|
||
on: | ||
pull_request: | ||
types: [unlabeled] | ||
|
||
jobs: | ||
get-removed-labels: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Get the removed label | ||
run: | | ||
# The path to the JSON file with the event payload | ||
EVENT_PAYLOAD_PATH=${{ github.event_path }} | ||
# Extract the label name using jq (a lightweight and flexible command-line JSON processor) | ||
LABEL_NAME=$(jq '.label.name' $EVENT_PAYLOAD_PATH) | ||
# Output the label name | ||
echo "The removed label is: $LABEL_NAME" |
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