Skip to content

Commit

Permalink
label instead
Browse files Browse the repository at this point in the history
  • Loading branch information
larf311 committed May 15, 2024
1 parent 2f93fd9 commit bd4c969
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions .github/workflows/comment.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,19 @@
name: test comment
name: Test Ring 1

on:
pull_request:
types: [synchronize]
types: [labeled]

jobs:
echo:
handle_test_ring_1_label:
runs-on: ubuntu-latest

steps:
- name: Dump GitHub context
env:
GITHUB_CONTEXT: ${{ toJson(github) }}
run: echo "$GITHUB_CONTEXT"
- name: Check if label is "test-ring-1"
if: ${{ github.event.label.name == 'test-ring-1' }}
run: |
echo "Label is test-ring-1, commenting and removing label..."
# Comment "hello world"
echo "hello world"
# Remove label
gh pr label remove ${GITHUB_EVENT_PULL_REQUEST} test-ring-1

0 comments on commit bd4c969

Please sign in to comment.