-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (34 loc) · 1.08 KB
/
retest.yml
File metadata and controls
38 lines (34 loc) · 1.08 KB
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
29
30
31
32
33
34
35
36
37
38
on:
issue_comment:
types: [created]
name: Retest
jobs:
retest:
name: Retest
if: github.event.issue.pull_request != '' && contains(github.event.comment.body, '/retest')
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@master
with:
fetch-depth: 0
ref: master
- name: Get PR data
id: pr-data
env:
GITHUB_TOKEN: ${{ secrets.BOT_ACCESS_TOKEN }}
run: |
/bin/bash .github/workflows/scripts/getCommentPrData.sh
- name: Repository Dispatch
uses: peter-evans/repository-dispatch@v1
with:
token: ${{ secrets.BOT_ACCESS_TOKEN }}
event-type: retest
client-payload: ${{ steps.pr-data.outputs.payload }}
# https://github.community/t5/GitHub-Actions/Workflow-is-failing-if-no-job-can-be-ran-due-to-condition/m-p/38186#M3250
always_job:
name: Always run job
runs-on: ubuntu-latest
steps:
- name: Always run
run: echo "This job is used to prevent the workflow to fail when all other jobs are skipped."