forked from os-autoinst/os-autoinst-distri-opensuse
-
Notifications
You must be signed in to change notification settings - Fork 1
28 lines (27 loc) · 1017 Bytes
/
openqa-comment.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
---
name: Clone an openQA test mentioned in a PR comment
# yamllint disable-line rule:truthy
on:
issue_comment:
types: [created, edited]
env:
OPENQA_HOST: ${{ vars.OPENQA_URL }}
OPENQA_API_KEY: ${{ secrets.OPENQA_API_KEY }}
OPENQA_API_SECRET: ${{ secrets.OPENQA_API_SECRET }}
GH_PR_URL: ${{ github.event.issue.pull_request.url }}
GH_COMMENT_BODY: ${{ github.event.comment.body }}
GH_COMMENT_AUTHOR: ${{ github.event.comment.user.login }}
GH_COMMENT_URL: ${{ github.event.comment.html_url }}
RESTRICT_ORGA: os-autoinst
RESTRICT_TEAM: tests-maintainer
jobs:
clone_mentioned_job:
runs-on: ubuntu-latest
if: "github.event.issue.pull_request && contains(github.event.comment.body, 'openqa: Clone ')"
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN_FOR_ACTIONS }}
container:
image: registry.opensuse.org/devel/openqa/containers/tumbleweed:client
steps:
- name: Clone and monitor job mentioned in PR comment
uses: os-autoinst/scripts/actions/clone-job@master