-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (45 loc) · 1.3 KB
/
build.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: "Build"
on:
workflow_dispatch:
push:
branches:
- master
schedule:
# Random time each week.
- cron: '32 3 * * 2'
jobs:
remote-keep-alive:
strategy:
matrix:
workflow:
- id: build.yml
repo: tor
- id: build.yaml
repo: actual-server
- id: build.yml
repo: deluge
- id: build.yaml
repo: static-hoster
- id: build.yaml
repo: passthrough-backend
- id: build.yaml
repo: varnish
runs-on: ubuntu-latest
steps:
- name: Ensure Workflow is Enabled
env:
OWNER: silvenga-docker
run: |
set -ex
curl --fail -i -X PUT -H "Authorization: token ${{ secrets.GH_TOKEN }}" "https://api.github.com/repos/$OWNER/${{ matrix.workflow.repo }}/actions/workflows/${{ matrix.workflow.id }}/enable"
self-keep-alive:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: gautamkrishnar/keepalive-workflow@master
name: Ensure Workflow is Kept Alive
with:
committer_username: "silvenga-docker"
committer_email: "[email protected]"
commit_message: "Automated commit by Keep Alive Workflow to keep this repository active."
time_elapsed: 30