Build #10
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json | |
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 | |
- id: build.yaml | |
repo: redlib | |
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 |