File tree 1 file changed +37
-0
lines changed
1 file changed +37
-0
lines changed Original file line number Diff line number Diff line change
1
+ on :
2
+ schedule :
3
+ - cron : ' 2/60 * * * *'
4
+ pull_request :
5
+ branches :
6
+ - master
7
+ jobs :
8
+ should_deploy :
9
+ runs-on : ubuntu-latest
10
+ name : check no deploy window
11
+ steps :
12
+ - name : is deploy calendar busy?
13
+ uses : Typeform/siesta@v1
14
+ id : siesta
15
+ with :
16
+ google-credentials : ${{ secrets.siesta_google_credentials }}
17
+ google-token : ${{ secrets.siesta_google_token }}
18
+ google-calendar-id : ${{ secrets.siesta_google_calendar_id }}
19
+ custom-calendar-busy-message : ' There is an event in the Calendar. Deploying not recommended.'
20
+ custom-calendar-not-busy-message : ' No event in the Calendar. Feel free to deploy.'
21
+ fail-if-busy : false
22
+ - name : set label action based on result
23
+ uses :
haya14busa/[email protected]
24
+ id : condval
25
+ with :
26
+ cond : ${{steps.siesta.outputs.calendar-busy}}
27
+ if_true : add
28
+ if_false : remove
29
+ - name : add or remove label
30
+ uses : Typeform/labeler@v1
31
+ id : labeler
32
+ with :
33
+ github-token : ${{ secrets.GITHUB_TOKEN }}
34
+ repository-name : ${{ github.repository }}
35
+ label : no-deploy-window
36
+ label-action : ${{steps.condval.outputs.value}}
37
+ base-branch : master
You can’t perform that action at this time.
0 commit comments