-
-
Notifications
You must be signed in to change notification settings - Fork 0
91 lines (78 loc) · 2.6 KB
/
giphy.yaml
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
---
##################################################
# Name: giphy.yaml
# Description:
# A Workflow that post giphy pics in PRs.
##################################################
name: Giphy
on:
pull_request:
types:
- opened
- reopened
- synchronize
permissions:
contents: read
issues: write
pull-requests: write
actions: read
checks: read
deployments: read
statuses: read
env:
ORGANISATION: ${{ github.repository_owner }}
PROJECT: ${{ github.event.repository.name }}
# Works on pushes or PRs
BRANCH_NAME_CURRENT: ${{ github.head_ref || github.ref_name }}
BRANCH_NAME_DEFAULT: ${{ github.event.repository.default_branch }}
jobs:
check:
name: Giphy status check
runs-on: ${{ matrix.os }}
timeout-minutes: 30
strategy:
fail-fast: true
matrix:
include:
- os: ubuntu-latest
steps:
- id: wait_for_linter
name: Wait for Linter (${{ matrix.os }})
uses: fountainhead/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
ref: ${{ github.event.pull_request.head.sha || github.sha }}
checkName: GitHub Super-Linter (${{ matrix.os }})
- id: wait_for_docker
name: Wait for Docker (${{ matrix.os }})
uses: fountainhead/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
ref: ${{ github.event.pull_request.head.sha || github.sha }}
checkName: Publish Release to registry (${{ matrix.os }})
- id: pr_comment_thumbs_up
name: PR Comment (Thumbs Up)
if: ${{ steps.wait_for_linter.outputs.conclusion == 'success' && steps.wait_for_linter.outputs.conclusion == 'success' }}
uses: exercism/[email protected]
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
config-file: .github/pr-comments/thumbs_up.yaml
template-variables: |
{
"id": "${{ github.sha }}-thumbs",
"onCreate": "create",
"onUpdate": "recreate"
}
- id: pr_comment_thumbs_down
name: PR Comment (Thumbs Down)
if: ${{ steps.wait_for_docker.outputs.conclusion != 'success' || steps.wait_for_docker.outputs.conclusion != 'success' }}
uses: exercism/[email protected]
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
config-file: .github/pr-comments/thumbs_down.yaml
template-variables: |
{
"id": "${{ github.sha }}-thumbs",
"onCreate": "create",
"onUpdate": "recreate"
}