-
Notifications
You must be signed in to change notification settings - Fork 1
31 lines (29 loc) · 1.2 KB
/
pr.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
29
30
31
name: Add url on PR
on: [pull_request]
jobs:
commentpr:
runs-on: [ubuntu-latest]
steps:
- name: "Wait for status checks"
id: waitforstatuschecks
uses: "WyriHaximus/[email protected]"
with:
ignoreActions: commentpr
checkInterval: 13
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
- uses: rlespinasse/[email protected]
- uses: mshick/add-pr-comment@v1
if: steps.waitforstatuschecks.outputs.status == 'success'
with:
message: |
Application deployé sur https://${{ env.GITHUB_HEAD_REF_SLUG }}-dot-test-liste-envies.appspot.com/ (http://${{ env.GITHUB_HEAD_REF_SLUG }}.test-liste-envies.appspot.com/)
repo-token: ${{ secrets.GITHUB_TOKEN }}
allow-repeats: false
- name: Slack notification
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
SLACK_AVATAR: repository # Optional. can be (repository, sender, an URL) (defaults to webhook app avatar)
uses: Ilshidur/action-slack@master
with:
args: "Voir l'application deployé sur https://{{ GITHUB_HEAD_REF_SLUG }}-dot-test-liste-envies.appspot.com/"