mirror of
https://github.com/fluencelabs/aquavm
synced 2024-12-04 23:20:18 +00:00
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:
parent
9d7d34a452
commit
f11ee86baa
22
.github/workflows/e2e-label.yml
vendored
Normal file
22
.github/workflows/e2e-label.yml
vendored
Normal 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"
|
1
.github/workflows/e2e.yml
vendored
1
.github/workflows/e2e.yml
vendored
@ -6,6 +6,7 @@ on:
|
|||||||
- "**.md"
|
- "**.md"
|
||||||
- ".github/**"
|
- ".github/**"
|
||||||
- "!.github/workflows/e2e.yml"
|
- "!.github/workflows/e2e.yml"
|
||||||
|
- "!.github/workflows/e2e-label.yml"
|
||||||
- "!.github/workflows/snapshot.yml"
|
- "!.github/workflows/snapshot.yml"
|
||||||
types:
|
types:
|
||||||
- "labeled"
|
- "labeled"
|
||||||
|
Loading…
Reference in New Issue
Block a user