-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (44 loc) · 1.66 KB
/
actionsflow.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
name: Actionsflow
on:
schedule:
# schedule at minute 20 every other hour
- cron: "20 */2 * * *"
push:
branches:
- main
repository_dispatch:
workflow_dispatch:
inputs:
include:
description: "--include: workflow file filter, you can use glob format to filter your workflows, the default value is empty value, means no filter will be using"
required: false
default: ""
force:
description: "--force: whether force to run workflow, true or false"
required: false
default: "false"
verbose:
description: "--verbose: debug workflow, true or false"
required: false
default: "false"
jobs:
run:
runs-on: ubuntu-latest
name: Run
concurrency: actionsflow
steps:
- uses: actions/checkout@v3
- name: Run Actionsflow
uses: actionsflow/actionsflow-action@v1
with:
args: "build --include ${{ github.event.inputs.include || ''}} -f ${{github.event.inputs.force=='true' && 'true' || 'false'}} --verbose ${{github.event.inputs.verbose=='true' && 'true' || 'false'}}"
json-secrets: ${{ toJSON(secrets) }}
json-github: ${{ toJSON(github) }}
- name: Setup act
uses: actionsflow/setup-act-for-actionsflow@v1
with:
version: 0.2.32
- name: Run act
run: act --workflows ./dist/workflows --secret-file ./dist/.secrets --eventpath ./dist/event.json --env-file ./dist/.env -P ubuntu-latest=actionsflow/act-environment:v1 -P ubuntu-18.04=actionsflow/act-environment:v1
- name: Prevent workflow from being disabled due to repo inactivity
uses: gautamkrishnar/keepalive-workflow@v1