chore: Automatically add e2e label on approved PR (#606)

* Automaically add e2e label when PR is approved

* Trigger when e2e label workflow changes

* Fix
This commit is contained in:
Anatolios Laskaris 2023-06-05 18:29:56 +03:00 committed by GitHub
parent 9d7d34a452
commit f11ee86baa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 23 additions and 0 deletions

22
.github/workflows/e2e-label.yml vendored Normal file
View File

@ -0,0 +1,22 @@
name: "e2e label"
on:
pull_request_review:
types: [submitted]
concurrency:
group: "${{ github.workflow }}-${{ github.ref }}"
cancel-in-progress: true
jobs:
label:
name: "Add e2e label to approved PR"
if: github.event.review.state == 'approved'
runs-on: ubuntu-latest
steps:
- name: Label when approved
uses: pullreminders/label-when-approved-action@v1.0.7
env:
APPROVALS: "1"
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ADD_LABEL: "e2e"

View File

@ -6,6 +6,7 @@ on:
- "**.md"
- ".github/**"
- "!.github/workflows/e2e.yml"
- "!.github/workflows/e2e-label.yml"
- "!.github/workflows/snapshot.yml"
types:
- "labeled"