diff --git a/.github/workflows/comment.yml b/.github/workflows/comment.yml index 8c2d499..af75083 100644 --- a/.github/workflows/comment.yml +++ b/.github/workflows/comment.yml @@ -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 \ No newline at end of file